diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-11-20 23:35:56 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-11-23 11:58:32 +0100 |
commit | 1f7dcb874d3c2a64b55f3039d6a1ff075705584d (patch) | |
tree | 1fec5bdf65e71c1cf03a713a957d95f13575323f | |
parent | a29ec4003223ba4ab0d2fb0b4f935f5930ff9f69 (diff) | |
download | Nim-1f7dcb874d3c2a64b55f3039d6a1ff075705584d.tar.gz |
print more to see the test in the log that was never finished.
-rw-r--r-- | testament/specs.nim | 2 | ||||
-rw-r--r-- | testament/tester.nim | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/testament/specs.nim b/testament/specs.nim index 88f8ea8d6..8afe9d98e 100644 --- a/testament/specs.nim +++ b/testament/specs.nim @@ -24,6 +24,7 @@ type actionCompile = "compile" actionReject = "reject" actionRunNoSpec = "runNoSpec" + TResultEnum* = enum reNimcCrash, # nim compiler seems to have crashed reMsgsDiffer, # error messages differ @@ -39,6 +40,7 @@ type reBuildFailed # package building failed reIgnored, # test is ignored reSuccess # test was successful + TTarget* = enum targetC = "C" targetCpp = "C++" diff --git a/testament/tester.nim b/testament/tester.nim index 065ad10dc..771fa3aa7 100644 --- a/testament/tester.nim +++ b/testament/tester.nim @@ -195,7 +195,7 @@ proc addResult(r: var TResults, test: TTest, target: TTarget, expected, given: string, success: TResultEnum) = let name = test.name.extractFilename & " " & $target & test.options let duration = epochTime() - test.startTime - let durationStr = duration.formatFloat(ffDecimal, precision = 8) + let durationStr = duration.formatFloat(ffDecimal, precision = 8).align(11) backend.writeTestResult(name = name, category = test.cat.string, target = $target, @@ -465,6 +465,7 @@ proc testExec(r: var TResults, test: TTest) = proc makeTest(test, options: string, cat: Category, action = actionCompile, env: string = ""): TTest = # start with 'actionCompile', will be overwritten in the spec: + echo "makeTest: ", test result = TTest(cat: cat, name: test, options: options, action: action, startTime: epochTime()) |