Skip to content

Commit 54c0438

Browse files
[chore] Actually run tests in Saucelabs (#527)
1 parent b1baf8d commit 54c0438

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

gulpfile.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const FILES_TO_CLEAN = [
3838
];
3939

4040
gulp.task('test', ['lint'], function () {
41-
if (process.env.hasOwnProperty('BROWSER_NAME')) {
41+
if (process.env.hasOwnProperty('BROWSERS')) {
4242
return testZuul();
4343
} else {
4444
return testNode();
@@ -78,18 +78,7 @@ function testNode () {
7878
// runs zuul through shell process
7979
function testZuul () {
8080
const ZUUL_CMD = './node_modules/zuul/bin/zuul';
81-
const args = [
82-
'--browser-name',
83-
process.env.BROWSER_NAME,
84-
'--browser-version',
85-
process.env.BROWSER_VERSION
86-
];
87-
if (process.env.hasOwnProperty('BROWSER_PLATFORM')) {
88-
args.push('--browser-platform');
89-
args.push(process.env.BROWSER_PLATFORM);
90-
}
91-
args.push(TEST_FILE);
92-
const zuulChild = child.spawn(ZUUL_CMD, args, { stdio: 'inherit' });
81+
const zuulChild = child.spawn(ZUUL_CMD, [ TEST_FILE ], { stdio: 'inherit' });
9382
zuulChild.on('exit', function (code) {
9483
cleanFiles(FILES_TO_CLEAN);
9584
process.exit(code);

0 commit comments

Comments
 (0)