diff --git a/plugins/c9.vfs.standalone/www/test.html b/plugins/c9.vfs.standalone/www/test.html index 8c4d8a9f..49578f7c 100644 --- a/plugins/c9.vfs.standalone/www/test.html +++ b/plugins/c9.vfs.standalone/www/test.html @@ -337,6 +337,11 @@ function done(err) { console.log("/" + Array(20).join("-")); console.log("finished running " + (i - 1) + " tests from " + all.length + ". In " + (Date.now() - t) + "ms"); + /* stress param makes the page continually refresh until a failure is found */ + if (document.URL.indexOf("stress=1") >= 0 && getReport() && !getReport().stats.failures) { + console.log("Stress testing and found no errors so reloading"); + location.reload(); + } callback && callback(err); } }