How to run e2e test?

in the new aureliacli after to create new project and to select Webpack bundler then I customize it for testing with protractor.
How can I run e2e test? I mean What command do I need to run our e2e tests ?
thanks

1 Like

You will need to run the project in one terminal (e.g. au run).
And run Protractor in another terminal using au protractor.

Note that if you’re using Chrome, it must be up to date. Mine wasn’t when I first tested this out.

2 Likes

I personally use Cypress.io, there’s barely any configuration, it works out of the box and it is so much better than Protractor. The only downside compare to Protractor is that for now it only supports Chrome (because it’s made on top of Electron), but they intend to add more Browsers support in the future (Firefox, IE, …). What Cypress provide compare to Protractor is day and night, check their website.

2 Likes

There is a readme file in your project generated by au new, it contains instructions on how to run/test the new project.

2 Likes

yes it works
thanks for your help

1 Like

I red it. readme file was helpful for me and my problem resolved.
thanks

1 Like

I researched about protractor and noticed that protractor is using selenium test tools and I know selenium is very powerful for test so I selected protractor
anyway thanks for your help

1 Like