Utilizing test db for e2e tests.

This commit is contained in:
David Jay
2016-11-16 17:18:17 -05:00
parent 9976464300
commit d389680224
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
"test": "mocha --compilers js:babel-core/register --recursive tests",
"test-watch": "mocha --compilers js:babel-core/register --recursive -w tests",
"embed-start": "npm run build && ./bin/www",
"pree2e": "node_modules/selenium-standalone/bin/selenium-standalone install",
"pree2e": "./pree2e.sh",
"e2e": "node_modules/.bin/nightwatch"
},
"config": {
Executable
+5
View File
@@ -0,0 +1,5 @@
node_modules/selenium-standalone/bin/selenium-standalone install
export TALK_PORT=3011
export TALK_MONGO_URL='mongodb://localhost/talk_test'
npm start &
wait 2
+1 -1
View File
@@ -1,4 +1,4 @@
module.exports = {
waitForConditionTimeout: 20000,
baseUrl: 'http://localhost:3000'
baseUrl: 'http://localhost:3011'
};