From f1d36c1f9668d3a3fac0b44d544654af866c6e2e Mon Sep 17 00:00:00 2001 From: David Cormier Date: Tue, 26 Aug 2014 19:47:38 -0400 Subject: [PATCH] Setup end to end testing Add necessary targets in the package.json file and update test instructions --- README.md | 5 ++++- package.json | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f19d5f5..424f8d8 100644 --- a/README.md +++ b/README.md @@ -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 ------------ diff --git a/package.json b/package.json index 81d8608..536fd28 100644 --- a/package.json +++ b/package.json @@ -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');\"" } }