kill hanging tests

This commit is contained in:
Peter 'Pita' Martischka 2012-11-03 16:51:37 +00:00
parent 95f17d490d
commit 7aae29114b
1 changed files with 6 additions and 0 deletions

View File

@ -116,6 +116,7 @@ $(function(){
return err; return err;
} }
var killTimeout;
runner.on('test end', function(test){ runner.on('test end', function(test){
if ('passed' == test.state) { if ('passed' == test.state) {
append("->","[green]PASSED[clear] :", test.title); append("->","[green]PASSED[clear] :", test.title);
@ -124,6 +125,11 @@ $(function(){
} else { } else {
append("->","[red]FAILED[clear] :", test.title, stringifyException(test.err)); append("->","[red]FAILED[clear] :", test.title, stringifyException(test.err));
} }
if(killTimeout) clearTimeout(killTimeout);
killTimeout = setTimeout(function(){
append("FINISHED - [red]no test started since 3 minutes, tests stopped[clear]");
}, 60000 * 3);
}); });
var total = runner.total; var total = runner.total;