From 973dbe539b86316678f30accfb07b3676f7d5939 Mon Sep 17 00:00:00 2001 From: Joseph Frazier <1212jtraceur@gmail.com> Date: Sun, 14 Feb 2016 21:16:49 -0500 Subject: Always run Electron tests during `npm test` See https://github.com/feross/webtorrent/pull/605#issuecomment-183823968 --- bin/test.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'bin') 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) -- cgit v1.2.3