O'Reilly logo

AngularJS Directives by Alex Vanston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

E2E testing

For E2E testing, Angular provides a testing suite called the Scenario Runner, which is essentially a collection of utilities to navigate your application and interact with it programmatically, so that you can test functionality from the user's point of view as well, and not just at the code level.

To get the Scenario Runner configured, go ahead and copy your current karma.conf.js to karma-e2e.conf.js. This testing setup requires a few different files to operate, and it's generally recommended to keep your two configurations separate for modularity and ease of testing. Open your new configuration file and replace jasmine with ng-scenario in the frameworks array. You can also remove all the application files from the include, as we're ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required