88
|
1 // Logging setup for phantom integration
|
|
2 // adapted from Modernizr
|
|
3
|
|
4 QUnit.begin = function () {
|
|
5 console.log("Starting test suite")
|
|
6 console.log("================================================\n")
|
|
7 }
|
|
8
|
|
9 QUnit.moduleDone = function (opts) {
|
|
10 if (opts.failed === 0) {
|
|
11 console.log("\u2714 All tests passed in '" + opts.name + "' module")
|
|
12 } else {
|
|
13 console.log("\u2716 " + opts.failed + " tests failed in '" + opts.name + "' module")
|
|
14 }
|
|
15 }
|
|
16
|
|
17 QUnit.done = function (opts) {
|
|
18 console.log("\n================================================")
|
|
19 console.log("Tests completed in " + opts.runtime + " milliseconds")
|
|
20 console.log(opts.passed + " tests of " + opts.total + " passed, " + opts.failed + " failed.")
|
|
21 } |