Merge pull request #1876 from flaviut/unittest-stacktrace
Add stack trace to unitest.nim exceptions
This commit is contained in:
commit
e386b7460b
1 changed files with 1 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ template test*(name: expr, body: stmt): stmt {.immediate, dirty.} =
|
||||||
|
|
||||||
except:
|
except:
|
||||||
checkpoint("Unhandled exception: " & getCurrentExceptionMsg())
|
checkpoint("Unhandled exception: " & getCurrentExceptionMsg())
|
||||||
|
echo getCurrentException().getStackTrace()
|
||||||
fail()
|
fail()
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue