The test runner will print out encountered exceptions

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

View file

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