From 1f7dcb874d3c2a64b55f3039d6a1ff075705584d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20D=C3=B6ring?= Date: Tue, 20 Nov 2018 23:35:56 +0100 Subject: [PATCH] print more to see the test in the log that was never finished. --- testament/specs.nim | 2 ++ testament/tester.nim | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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())