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

Commit a28d719

Browse files
authored
Use mocha for end-to-end tests (#212)
PR-URL: #212
1 parent c48c7db commit a28d719

File tree

12 files changed

+434
-547
lines changed

12 files changed

+434
-547
lines changed

bin/run-e2e.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

bin/run-system-test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
6+
openssl aes-256-cbc -K $encrypted_e9782ba88cb0_key \
7+
-iv $encrypted_e9782ba88cb0_iv \
8+
-in node-team-debug-test-dfc747dacb5b.json.enc \
9+
-out node-team-debug-test-dfc747dacb5b.json -d
10+
fi
11+
12+
mocha system-test/test-*.js

bin/run-test.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,5 @@ then
5353
exit 1
5454
else
5555
npm run system-test
56-
./bin/run-e2e.sh || exit 1
5756
fi
5857
fi

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"scripts": {
5050
"test": "./bin/run-test.sh",
51-
"system-test": "mocha system-test/*.js --no-timeouts --bail",
51+
"system-test": "./bin/run-system-test.sh",
5252
"changelog": "./bin/run-changelog.sh",
5353
"coverage": "./bin/run-test.sh -c",
5454
"bump": "./bin/run-bump.sh",

0 commit comments

Comments
 (0)