Skip to content

Commit

Permalink
tests: Redirect server output to log file
Browse files Browse the repository at this point in the history
So as to make the test output itself much more readable instead of a
giant mess.
  • Loading branch information
tsibley committed Nov 23, 2021
1 parent 81f6fd5 commit e36b13e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ scratch
/sessions/

# generated data
/data
/data

# test logs
/test/end-to-end/server.log
/test/smoke-test/server.log
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"start": "npm run server",
"smoke-test": "NODE_ENV=test ENV=dev jest --roots ./test/smoke-test/",
"e2e-test": "NODE_ENV=test ENV=dev jest --roots ./test/end-to-end/",
"e2e-test:ci": "start-server-and-test server http://localhost:5000 e2e-test",
"smoke-test:ci": "start-server-and-test server http://localhost:5000 smoke-test",
"e2e-test:ci": "start-server-and-test 'node server.js --verbose >./test/end-to-end/server.log 2>&1' http://localhost:5000 e2e-test",
"smoke-test:ci": "start-server-and-test 'node server.js --verbose >./test/smoke-test/server.log 2>&1' http://localhost:5000 smoke-test",
"test:ci": "npm run smoke-test:ci && npm run e2e-test:ci;",
"test:unit": "jest ./test/unit*",
"dev": "./develop.sh"
Expand Down

0 comments on commit e36b13e

Please sign in to comment.