Skip to content

Commit f33a36c

Browse files
Mocha Premade reporter (#1251)
related BabylonJS/JsRuntimeHost#40
1 parent 4ee84e3 commit f33a36c

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

Apps/UnitTests/Scripts/tests.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
// TODO: use premade reporter (once Console Polyfill is fixed)
2-
function BabylonReporter(runner) {
3-
const stats = runner.stats;
4-
5-
runner.on("pass", test => {
6-
console.log(`Passed: ${test.fullTitle()}`);
7-
});
8-
9-
runner.on("fail", (test, err) => {
10-
console.log(`Failed: ${test.fullTitle()} with error: ${err.message}`);
11-
});
12-
13-
runner.on("end", () => {
14-
console.log(`Tests passed: ${stats.passes}/${stats.tests}`);
15-
});
16-
}
17-
18-
mocha.setup({ ui: "bdd", reporter: BabylonReporter });
1+
mocha.setup({ ui: "bdd", reporter: "tap", retries: 5 });
192

203
const expect = chai.expect;
214

0 commit comments

Comments
 (0)