Skip to content

Ignore runtime errors and only fail on assertion errors#9

Open
shama wants to merge 1 commit into
fat:masterfrom
shama:asserts-failed
Open

Ignore runtime errors and only fail on assertion errors#9
shama wants to merge 1 commit into
fat:masterfrom
shama:asserts-failed

Conversation

@shama

@shama shama commented Jul 31, 2012

Copy link
Copy Markdown
Contributor

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.

@vbardales

Copy link
Copy Markdown

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants