This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This would enable the tests to be run on both Linux and Windows.
- Loading branch information
Showing
3 changed files
with
44 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env node | ||
|
||
var glob = require('glob').sync; | ||
var spawn = require('child_process').spawn; | ||
|
||
var scripts = [ | ||
'lib/cli.js spec/basicConf.js', | ||
'lib/cli.js spec/multiConf.js', | ||
'lib/cli.js spec/altRootConf.js', | ||
'lib/cli.js spec/onPrepareConf.js', | ||
'lib/cli.js spec/mochaConf.js', | ||
'lib/cli.js spec/cucumberConf.js', | ||
'node lib/cli.js spec/withLoginConf.js', | ||
'node lib/cli.js spec/suitesConf.js --suite okmany', | ||
'node lib/cli.js spec/suitesConf.js' | ||
]; | ||
|
||
scripts.push( | ||
'node node_modules/.bin/minijasminenode jasminewd/spec/adapterSpec.js ' + | ||
glob('spec/unit/*.js').join(' ') + ' ' + | ||
glob('docs/spec/*.js').join(' ')); | ||
|
||
var failed = false; | ||
|
||
(function runTests(i) { | ||
if (i < scripts.length) { | ||
console.log('node ' + scripts[i]); | ||
var args = scripts[i].split(/\s/); | ||
|
||
var test = spawn(args[0], args.slice(1), {stdio: 'inherit'}); | ||
test.on('error', function(err) { | ||
throw err; | ||
}); | ||
test.on('exit', function(code) { | ||
if (code != 0) { | ||
failed = true; | ||
} | ||
runTests(i + 1); | ||
}); | ||
} else { | ||
process.exit(failed ? 1 : 0); | ||
} | ||
}(0)); |
This file was deleted.
Oops, something went wrong.