Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoseph Frazier <1212jtraceur@gmail.com>2016-02-15 05:16:49 +0300
committerJoseph Frazier <1212jtraceur@gmail.com>2016-02-15 06:01:51 +0300
commit973dbe539b86316678f30accfb07b3676f7d5939 (patch)
tree402673cbc64a5317d0ac339e4fd31b3842df233d /bin
parent7e61cfd5520044b840a81511a4fa4518b9467885 (diff)
Always run Electron tests during `npm test`
See https://github.com/feross/webtorrent/pull/605#issuecomment-183823968
Diffstat (limited to 'bin')
-rw-r--r--bin/test.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/test.js b/bin/test.js
index e794bf3..c2cebd4 100644
--- a/bin/test.js
+++ b/bin/test.js
@@ -13,9 +13,14 @@ var runSauceLabs = hasSauceLabEnvVars || pathExists.sync(zuulrcPath)
npmRun('test-node', function (code) {
if (code === 0) {
- var scriptName = runSauceLabs ? 'test-browser' : 'test-browser-headless'
- npmRun(scriptName, function (code) {
- process.exit(code)
+ npmRun('test-browser-headless', function (code) {
+ if (code === 0 && runSauceLabs) {
+ npmRun('test-browser', function (code) {
+ process.exit(code)
+ })
+ } else {
+ process.exit(code)
+ }
})
} else {
process.exit(code)