The test runner will print out encountered exceptions

This commit is contained in:
Zahary Karadjov
2011-12-07 00:57:52 +02:00
parent 0e609d2101
commit e13a610ad4

View File

@@ -70,6 +70,10 @@ template test*(name: expr, body: stmt): stmt =
TestSetupIMPL()
body
except:
checkpoint("Unhandled exception: " & getCurrentExceptionMsg())
fail()
finally:
TestTeardownIMPL()
testDone name, TestStatusIMPL