mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
The test runner will print out encountered exceptions
This commit is contained in:
@@ -70,6 +70,10 @@ template test*(name: expr, body: stmt): stmt =
|
||||
TestSetupIMPL()
|
||||
body
|
||||
|
||||
except:
|
||||
checkpoint("Unhandled exception: " & getCurrentExceptionMsg())
|
||||
fail()
|
||||
|
||||
finally:
|
||||
TestTeardownIMPL()
|
||||
testDone name, TestStatusIMPL
|
||||
|
||||
Reference in New Issue
Block a user