Skip to content
Permalink
Browse files

test: Show summary after stack

  • Loading branch information...
lauriro committed Sep 11, 2019
1 parent 0f2b0a0 commit dfedbe954acf3b4a52efdbfcf395840439a22522
Showing with 7 additions and 10 deletions.
  1. +1 −1 doc
  2. +6 −9 test/index.js
2 doc
Submodule doc updated from 7a5cdf to 84423c
@@ -248,13 +248,6 @@
if (skipped) {
print("# " + yellow + bold + "skip " + skipped)
}
print(
"#" + (failed ? "" : green + bold) + " pass " + (totalCases - failed) + "/" + totalCases
+ " [" + passedAsserts + "/" + totalAsserts + "]"
+ " in " + (_Date.now() - started) + " ms"
+ " at " + started.toTimeString().slice(0,8)
)

if (failed) {
for (var nums = [], stack = []; testCase = failedCases[--failed]; ) {
nums[failed] = testCase.num
@@ -263,10 +256,14 @@
print("#" + red + bold + " FAILED tests " + nums.join(", "))
print(("---\n" + stack.join("\n---\n") + "\n...").replace(/^/gm, " "))
}
print(
"#" + (failed ? "" : green + bold) + " pass " + (totalCases - failed) + "/" + totalCases
+ " [" + passedAsserts + "/" + totalAsserts + "]"
+ " in " + (_Date.now() - started) + " ms"
+ " at " + started.toTimeString().slice(0,8)
)
}



function This() {
return this
}

0 comments on commit dfedbe9

Please sign in to comment.
You can’t perform that action at this time.