This is a list of collected resources I have found for Angular’s awesome new tool called Protractor.
Official
Blog Articles
- https://www.yearofmoo.com/2013/09/advanced-testing-and-debugging-in-angularjs.html
- good post for beginners to see how protractor works https://www.ng-newsletter.com/posts/practical-protractor.html
Videos
- Video section by Julie Ralph about Protractor: https://www.youtube.com/watch?v=BvAeabvZ61o (skip to 31:00)
Syntax Examples
- Protractor’s syntax in the repo’s e2e tests: https://github.com/angular/protractor/blob/master/spec/basic/findelements_spec.js
- Protractor locator examples: https://github.com/angular/protractor/blob/8580c0c76c5ccd3c55d053e59d8df37b3c4cf35a/lib/locators.js#L79
- Gist with useful Protractor e2e examples https://gist.github.com/auser/8415172
- Protractor httpbackend example https://github.com/PascalPrecht/angular-bcc/blob/master/test/unit/bbc.spec.js#L50-L71
Demos
- Year of moo (Angular) angular seed – A starter AngularJS repository for getting started with AngularJS. Includes helpful unit testing tools, Protractor integration and coverage testing. https://github.com/yearofmoo/angularjs-seed-repo
- Good example of running protractor with Grunt https://github.com/clevertech/cleverstack-angular-seed
no coverage object in the browser. I’m getting this error while execute the code coverage for protractor using grunt protractor coverage plugin.
Definitely, I never see protractor tests (e2e) WITH CODE COVERAGE works so well (and keep working). When it happens, the next version break all. If I am wrong, does anyone can do it in a seed project and put it in a git repo?