Skip to content

Commit c25ed6b

Browse files
committed
Add timeout for CI server and switch to min reporter since dots are mostly useless there
1 parent b4a4500 commit c25ed6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Jakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ function deleteTemporaryProjectOutput() {
348348
}
349349
}
350350

351+
var testTimeout = 5000;
351352
desc("Runs the tests using the built run.js file. Syntax is jake runtests. Optional parameters 'host=', 'tests=[regex], reporter=[list|spec|json|<more>]'.");
352353
task("runtests", ["tests", builtLocalDirectory], function() {
353354
cleanTestDirs();
@@ -367,14 +368,14 @@ task("runtests", ["tests", builtLocalDirectory], function() {
367368
reporter = process.env.reporter || process.env.r || 'dot';
368369
// timeout normally isn't necessary but Travis-CI has been timing out on compiler baselines occasionally
369370
// default timeout is 2sec which really should be enough, but maybe we just need a small amount longer
370-
var cmd = host + " -R " + reporter + tests + colors + ' --timeout 3000 ' + run;
371+
var cmd = host + " -R " + reporter + tests + colors + ' -t ' + testTimeout + ' ' + run;
371372
console.log(cmd);
372373
exec(cmd, deleteTemporaryProjectOutput);
373374
}, {async: true});
374375

375376
desc("Generates code coverage data via instanbul")
376377
task("generate-code-coverage", ["tests", builtLocalDirectory], function () {
377-
var cmd = "istanbul cover node_modules/mocha/bin/_mocha -- -R dot " + run;
378+
var cmd = 'istanbul cover node_modules/mocha/bin/_mocha -- -R min -t ' + testTimeout + ' ' + run;
378379
console.log(cmd);
379380
exec(cmd);
380381
}, { async: true });

0 commit comments

Comments
 (0)