mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
DEV: adds module debugging to js tests (#7751)
This commit is contained in:
@ -215,6 +215,10 @@ function logQUnit() {
|
|||||||
|
|
||||||
let durations = {};
|
let durations = {};
|
||||||
|
|
||||||
|
QUnit.testStart(function(context) {
|
||||||
|
console.log("\n" + context.module + "::" + context.name);
|
||||||
|
});
|
||||||
|
|
||||||
QUnit.testDone(function(context) {
|
QUnit.testDone(function(context) {
|
||||||
durations[context.module + "::" + context.name] = context.runtime;
|
durations[context.module + "::" + context.name] = context.runtime;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user