summary refs log tree commit diff stats
path: root/testament/testament.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-03-12 06:45:51 -0800
committerGitHub <noreply@github.com>2021-03-12 15:45:51 +0100
commitc6f9c38892a6351d2bfd0c796bbb6b10b3a68a96 (patch)
tree8a2f7deb879d8a01fdaf6ce315a0805167b1c8d1 /testament/testament.nim
parent4f0bac791a3d8ae198d8bbbbed29410d3d7d3d7c (diff)
downloadNim-c6f9c38892a6351d2bfd0c796bbb6b10b3a68a96.tar.gz
use NIM_TESTAMENT_BATCH for important_packages, improve formatting, code cleanups (#17301)
* use NIM_TESTAMENT_BATCH for important_packages, improve formatting, code cleanups
* workaround for nimcrypto not having `--path:.`; remove workaround "two are special snowflakes"
* add comment explaining why nimcrypto fails and what packages need to be testable
Diffstat (limited to 'testament/testament.nim')
-rw-r--r--testament/testament.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/testament/testament.nim b/testament/testament.nim
index 1307c19ef..d1f34cd98 100644
--- a/testament/testament.nim
+++ b/testament/testament.nim
@@ -76,6 +76,7 @@ type
     args: seq[string]
     spec: TSpec
     startTime: float
+    debugInfo: string
 
 # ----------------------------------------------------------------------------
 
@@ -285,7 +286,7 @@ proc addResult(r: var TResults, test: TTest, target: TTarget,
   template disp(msg) =
     maybeStyledEcho styleDim, fgYellow, msg & ' ', styleBright, fgCyan, name
   if success == reSuccess:
-    maybeStyledEcho fgGreen, "PASS: ", fgCyan, alignLeft(name, 60), fgBlue, " (", durationStr, " sec)"
+    maybeStyledEcho fgGreen, "PASS: ", fgCyan, test.debugInfo, alignLeft(name, 60), fgBlue, " (", durationStr, " sec)"
   elif success == reDisabled:
     if test.spec.inCurrentBatch: disp("SKIP:")
     else: disp("NOTINBATCH:")