Search code examples
aurelia

How to start e2e tests after creating a new aurelia project


So I created a new project with aurelia-cli and selected protractor for e2e testing, I expected to have a command similar to au karma for running e2e tests but there is none.

How do I run the e2e test?


Solution

  • Did not quite work as expected, the nps trick does not work for a aurelia-cli project, probably works for webpacker.

    Endedup using a combination of this post http://mobilemancer.com/2017/01/05/aurelia-spa-unit-testing-and-e2e-testing/ and the skeleton app here https://github.com/aurelia/skeleton-navigation/tree/master/skeleton-typescript-aspnetcore/src/skeleton

    My config and task file are here https://gist.github.com/alexandru-calinoiu/8bf0a5e97f05311e388fe333f6b83b75