haunt
haunt copied to clipboard
Ignore runtime errors and only fail on assertion errors
Currently if a test fails because of a runtime error such as a mistyped method name eg issue.whoops()
, it will be assumed the test case has failed and trigger an action.
This PR adds the helper method assertsFailed()
to only return assertion errors. This way users can only trigger an action if an assert fails, not just on any failure.
:+1: