A bedrock module that integrates the protractor test framework for AngularJS applications with bedrock.
- npm v3+
npm install bedrock-protractor
var bedrock = require('bedrock');
var cfg = bedrock.config.protractor.config;
// add protractor tests for your module/project to your config file
cfg.suites['bedrock-foo'] = '/foo/test/tests/**/*.js';
// add a script to run to define helper functions prior to tests
cfg.params.config.onPrepare.push('/foo/test/helpers/bar.js';
To run tests on the command line:
node myproject.js test --framework protractor
- For debian-based systems (eg: Ubuntu), install openjdk-7-jdk.
For more documentation on configuration, see config.js.