mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
Quit tests early, output seed to easily reproduce failure
This commit is contained in:
parent
67e8bc5342
commit
18e3339580
|
@ -194,6 +194,7 @@ function logQUnit() {
|
|||
testErrors.push(msg);
|
||||
assertionErrors = [];
|
||||
console.log("F");
|
||||
QUnit.config.queue.length = 0;
|
||||
} else {
|
||||
console.log(".");
|
||||
}
|
||||
|
@ -245,6 +246,17 @@ function logQUnit() {
|
|||
];
|
||||
console.log(stats.join(", "));
|
||||
|
||||
if (context.failed) {
|
||||
console.log("\nUse this filter to run in the same order:");
|
||||
console.log("QUNIT_SEED=" + QUnit.config.seed + " rake qunit:test\n");
|
||||
console.log("If you have a web environment running, you can visit:");
|
||||
console.log(
|
||||
"http://localhost:3000/qunit?hidepassed&seed=" +
|
||||
QUnit.config.seed +
|
||||
"\n\n"
|
||||
);
|
||||
}
|
||||
|
||||
window.qunitDone = context;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user