diff options
-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()) |