Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Use mocha for end-to-end tests (#212)
Browse files Browse the repository at this point in the history
PR-URL: #212
  • Loading branch information
kjin committed Jan 5, 2017
1 parent c48c7db commit a28d719
Show file tree
Hide file tree
Showing 12 changed files with 434 additions and 547 deletions.
24 changes: 0 additions & 24 deletions bin/run-e2e.sh

This file was deleted.

12 changes: 12 additions & 0 deletions bin/run-system-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -e

if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
openssl aes-256-cbc -K $encrypted_e9782ba88cb0_key \
-iv $encrypted_e9782ba88cb0_iv \
-in node-team-debug-test-dfc747dacb5b.json.enc \
-out node-team-debug-test-dfc747dacb5b.json -d
fi

mocha system-test/test-*.js
1 change: 0 additions & 1 deletion bin/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,5 @@ then
exit 1
else
npm run system-test
./bin/run-e2e.sh || exit 1
fi
fi
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"scripts": {
"test": "./bin/run-test.sh",
"system-test": "mocha system-test/*.js --no-timeouts --bail",
"system-test": "./bin/run-system-test.sh",
"changelog": "./bin/run-changelog.sh",
"coverage": "./bin/run-test.sh -c",
"bump": "./bin/run-bump.sh",
Expand Down
Loading

0 comments on commit a28d719

Please sign in to comment.