Setup end to end testing

Add necessary targets in the package.json file
and update test instructions
This commit is contained in:
David Cormier 2014-08-26 19:47:38 -04:00
parent 92282e3a93
commit f1d36c1f96
2 changed files with 7 additions and 1 deletions

View file

@ -68,10 +68,13 @@ Once this is done, you will need to retrieve the necessary packages for testing
`$ npm install`
Finally, you can run the tests:
Finally, you can run the unit tests:
`$ npm test`
Or the end to end tests:
`$ npm run protractor`
Contributing
------------

View file

@ -27,6 +27,9 @@
"preupdate-webdriver": "npm install",
"update-webdriver": "webdriver-manager update",
"preprotractor": "npm run update-webdriver",
"protractor": "protractor test/protractor-conf.js",
"update-index-async": "node -e \"require('shelljs/global'); sed('-i', /\\/\\/@@NG_LOADER_START@@[\\s\\S]*\\/\\/@@NG_LOADER_END@@/, '//@@NG_LOADER_START@@\\n' + cat('app/bower_components/angular-loader/angular-loader.min.js') + '\\n//@@NG_LOADER_END@@', 'app/index-async.html');\""
}
}