Skip to content

Commit

Permalink
Always run Electron tests during npm test
Browse files Browse the repository at this point in the history
  • Loading branch information
josephfrazier committed Feb 15, 2016
1 parent 7e61cfd commit 973dbe5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bin/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 973dbe5

Please sign in to comment.