The test runner will print out encountered exceptions
This commit is contained in:
parent
0e609d2101
commit
e13a610ad4
1 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ template test*(name: expr, body: stmt): stmt =
|
|||
TestSetupIMPL()
|
||||
body
|
||||
|
||||
except:
|
||||
checkpoint("Unhandled exception: " & getCurrentExceptionMsg())
|
||||
fail()
|
||||
|
||||
finally:
|
||||
TestTeardownIMPL()
|
||||
testDone name, TestStatusIMPL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue