Allowing e2e to run with only node_env=test.

This commit is contained in:
David Jay
2017-01-18 12:12:49 -05:00
parent 8588cab228
commit b59512d2b8
3 changed files with 8 additions and 4 deletions
+3
View File
@@ -0,0 +1,3 @@
TALK_SESSION_SECRET=imasecretlookatme
TALK_ROOT_URL=http://localhost:3000
TALK_MONGO_URL=mongodb://localhost/test
+1
View File
@@ -14,6 +14,7 @@
"test-watch": "TEST_MODE=unit NODE_ENV=test mocha --compilers js:babel-core/register --recursive -w tests",
"pree2e": "NODE_ENV=test scripts/pree2e.sh",
"e2e": "NODE_ENV=test nightwatch",
"poste2e": "kill -15 $(ps aux | grep './bin/cli -c .env-e2e serve --jobs' | awk '{print $2}')",
"embed-start": "NODE_ENV=development npm run build && ./bin/cli serve --jobs",
"postinstall": "npm run build"
},
+4 -4
View File
@@ -4,12 +4,12 @@
selenium-standalone install
# Creating Admin Test User
./bin/cli-users create --flag_mode --email "admin@test.com" --password "test" --name "Admin Test User" --role "admin"
./bin/cli-users create --flag_mode --email "admin@test.com" --password "testtest" --name "AdminTestUser" --role "admin"
# Creating Moderator Test User
./bin/cli-users create --flag_mode --email "moderator@test.com" --password "test" --name "Moderator Test User" --role "moderator"
./bin/cli-users create --flag_mode --email "moderator@test.com" --password "testtest" --name "ModeratorTestUser" --role "moderator"
# Creating Commenter Test User
./bin/cli-users create --flag_mode --email "commenter@test.com" --password "test" --name "commenter@test.com"
./bin/cli-users create --flag_mode --email "commenter@test.com" --password "testtest" --name "commenter@test.com"
npm start &
./bin/cli -c .env-e2e serve --jobs &