Make unittest.nim print stack trace
This commit is contained in:
parent
076f993150
commit
d99454314c
1 changed files with 1 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ template test*(name: expr, body: stmt): stmt {.immediate, dirty.} =
|
|||
|
||||
except:
|
||||
checkpoint("Unhandled exception: " & getCurrentExceptionMsg())
|
||||
echo getCurrentException().getStackTrace()
|
||||
fail()
|
||||
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue