We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2035ad0 commit 1bcbe6cCopy full SHA for 1bcbe6c
bin/run-test.js
@@ -17,6 +17,13 @@ function runTests(client) {
17
return utils.npmRun('mocha', ['--ui', 'bdd', 'test/*']);
18
} else {
19
var options = buildKarmaConf(client);
20
+
21
+ // buildKarmaConf returns null if we can't run the tests
22
+ // e.g. SauceLabs with no credentials on Travis
23
+ if (!options) {
24
+ return Promise.resolve();
25
+ }
26
27
return utils.karmaRun(options);
28
}
29
@@ -63,7 +70,7 @@ function buildKarmaConf(client) {
63
70
client.runner === 'saucelabs' &&
64
71
process.env.TRAVIS_SECURE_ENV_VARS === 'false') {
65
72
console.error('Not running test, cannot connect to saucelabs');
66
- process.exit(0);
73
+ return null;
67
74
68
75
69
76
if (client.runner === 'saucelabs') {
0 commit comments