Skip to content

Testing

Diel Duarte edited this page Oct 14, 2015 · 3 revisions

When setting up your project or using the module, controller, service, directive or filter sub-generator, Generator-M-Ionic will automatically generate sample test files for that component. These files can be found in the test/karma and test/protractor directory respectively. To check if all tests are running properly run:

gulp karma
# and
gulp protractor

Hint: gulp watch and gulp protractor cannot be run at the same time.

If you are new to testing your app with protractor, karma and jasmine. Here are some good places to get started:

Articles on testing angular

jasmine website - http://jasmine.github.io/

protractor website - http://angular.github.io/protractor/#/

karma website - http://karma-runner.github.io/