ionic-team / ionic-unit-testing-example

Example of adding unit testing in your Ionic 2.x or greater apps with Karma and Jasmine
Other
374 stars 145 forks source link

e2e tests shows error #55

Closed AresDev closed 7 years ago

AresDev commented 7 years ago

I get an error executing e2e the following error:

Can you tell me what I am doing wrong?

Thanks!

leifwells commented 7 years ago

To run your e2e tests, you have to be running the Ionic server, i.e. ionic serve, at the same time.

Just load up a new terminal window and run the command then run your e2e tests.

AresDev commented 7 years ago

Excellent, thank you!

k7moorthi commented 7 years ago

You can also refer to: https://github.com/lathonez/clicker/blob/master/protractor.conf.js#L26.

This will handle serving the Ionic app. So you can do your testing without any worries.

NOTE: Don't forget to install 'connect' and 'serve-static' packages from npm.