Barry Cliversden
Barry Cliversden

Reputation: 25

Ionic 2 E2E Testing with protractor

Struggling to get my head around E2E testing on my Ionic 2 app. I've read that I should use protractor but I don't know how to do this with Ionic 2.

Upvotes: 1

Views: 2282

Answers (1)

lathonez
lathonez

Reputation: 2443

Protractor is straightforward to set up with Ionic 2. Briefly, you need:

  • an e2e test file
  • a config file for protractor
  • a gulp (or similar) job to build your e2e if you've written it in Typescript
  • to install protractor

I've written a walkthrough for Ionic 2 with full source code available on github

EDIT: as of Ionic 2 RC1 we've updated the project and associated walkthrough to use ng-cli.

Upvotes: 9

Related Questions