summary refs log tree commit diff stats
path: root/tests/testament/tester.nim
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2015-10-08 10:58:37 -0700
committerAman Gupta <aman@tmm1.net>2015-10-08 10:58:37 -0700
commit5bb0820596512be5a1314b5ac3f68b9b4a6e62df (patch)
treeafafea12074eaaf6dea108d96ed236e46ae5903c /tests/testament/tester.nim
parentcadef4378663640d9985f2ecdb135cc0549b7a11 (diff)
downloadNim-5bb0820596512be5a1314b5ac3f68b9b4a6e62df.tar.gz
show failure code
Diffstat (limited to 'tests/testament/tester.nim')
-rw-r--r--tests/testament/tester.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim
index b5f5443f9..b18e343cd 100644
--- a/tests/testament/tester.nim
+++ b/tests/testament/tester.nim
@@ -173,7 +173,7 @@ proc addResult(r: var TResults, test: TTest,
       elif success == reIgnored:
         ("Skipped", "")
       else:
-        ("Failed", "Expected:\n" & expected & "\n\n" & "Gotten:\n" & given)
+        ("Failed", "Failure: " & $success & "\nExpected:\n" & expected & "\n\n" & "Gotten:\n" & given)
     var p = startProcess("appveyor", args=["AddTest", test.name.replace("\\", "/") & test.options, "-Framework", "nim-testament", "-FileName", test.cat.string, "-Outcome", outcome, "-ErrorMessage", msg, "-Duration", $(duration*1000).int], options={poStdErrToStdOut, poUsePath, poParentStreams})
     discard waitForExit(p)
     close(p)