This repository accompanies a Meetup of the AngularJS Tampa group covering the tools, procedures, and conventions used in testing AngularJS applications.
TODO: use a Vagrant environment for all of this
- make sure you have node and npm installed
- install node module dependencies:
npm install
- install bower packages:
bower install
- install webdriver:
node_modules/protractor/bin/webdriver-manager update
- fire up the server:
node server/server.js
Tests can either be run manually as standalone processes via their node modules, using their individual Grunt tasks, or
all at the same time via the grunt test
task. TODO: Actually implement the grunt test
task.
E2E: from the repo root, run ./node_modules/protractor/bin/protractor ./test/protractor.conf.js
Unit: from the repo root, run grunt build
to compile the karma configuration template, start the karma server via
./node_modules/karma/bin/karma start build/karma-unit.js
and run with ./node_modules/karma/bin/karma run build/karma-unit.js