diff --git a/Tests/UnitTests/Scripts/tests.js b/Tests/UnitTests/Scripts/tests.js index d90e15e6..62c9d577 100644 --- a/Tests/UnitTests/Scripts/tests.js +++ b/Tests/UnitTests/Scripts/tests.js @@ -1,24 +1,7 @@ // Set this to true to make attaching a debugging easier. const waitForDebugger = false; -// TODO: use premade reporter (once Console Polyfill is fixed) -function BabylonReporter(runner) { - const stats = runner.stats; - - runner.on("pass", test => { - console.log(`Passed: ${test.fullTitle()}`); - }); - - runner.on("fail", (test, err) => { - console.log(`Failed: ${test.fullTitle()} with error: ${err.message}`); - }); - - runner.on("end", () => { - console.log(`Tests passed: ${stats.passes}/${stats.tests}`); - }); -} - -mocha.setup({ ui: "bdd", reporter: BabylonReporter }); +mocha.setup({ ui: "bdd", reporter: "tap", retries: 5 }); const expect = chai.expect;