Skip to content

Fix problem with Mockery expectations hiding fails#6

Merged
enumag merged 1 commit intoCodeception:masterfrom
akimsko:patch-1
Sep 12, 2015
Merged

Fix problem with Mockery expectations hiding fails#6
enumag merged 1 commit intoCodeception:masterfrom
akimsko:patch-1

Conversation

@akimsko
Copy link
Copy Markdown
Contributor

@akimsko akimsko commented Sep 9, 2015

_after() is always run, even if a regular assertion fails the test. This causes mockery to hijack the error, if it had any expectations in the test.

This fix prevents Mockery from running its expectations, if the test has already failed. So that the correct failure message is displayed.

_after() is always run, even if a regular assertion fails the test. This causes mockery to hijack the error, if it had any expectations in the test.

This fix prevents Mockery from running its expectations, if the test has already failed. So that the correct failure message is displayed.
enumag added a commit that referenced this pull request Sep 12, 2015
Ignore exception from Mockery if the test already failed
@enumag enumag merged commit a4b9c21 into Codeception:master Sep 12, 2015
@enumag
Copy link
Copy Markdown
Member

enumag commented Sep 12, 2015

@akimsko Thank you!

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