mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 21:16:08 +08:00
DEV: Move the failures list to the end of output (#11082)
No more scrolling up each time the tests fail.
(Alternatively, we could just not show the slowest tests list when there are any failures 🤷♂️)
This commit is contained in:
parent
fa5016ca98
commit
ac5c457d9e
|
@ -234,15 +234,6 @@ function logQUnit() {
|
|||
QUnit.done(function (context) {
|
||||
console.log("\n");
|
||||
|
||||
if (testErrors.length) {
|
||||
console.log("Test Errors");
|
||||
console.log("----------------------------------------------");
|
||||
testErrors.forEach((e) => {
|
||||
console.error(e);
|
||||
});
|
||||
console.log("\n");
|
||||
}
|
||||
|
||||
console.log("Slowest tests");
|
||||
console.log("----------------------------------------------");
|
||||
let ary = Object.keys(durations).map((key) => ({
|
||||
|
@ -254,6 +245,17 @@ function logQUnit() {
|
|||
console.log(pair.key + ": " + pair.value + "ms");
|
||||
});
|
||||
|
||||
console.log("\n");
|
||||
|
||||
if (testErrors.length) {
|
||||
console.log("Test Errors");
|
||||
console.log("----------------------------------------------");
|
||||
testErrors.forEach((e) => {
|
||||
console.error(e);
|
||||
});
|
||||
console.log("\n");
|
||||
}
|
||||
|
||||
var stats = [
|
||||
"Time: " + context.runtime + "ms",
|
||||
"Total: " + context.total,
|
||||
|
|
Loading…
Reference in New Issue
Block a user