Skip to content

Conversation

@joemasilotti
Copy link

Failure messages are now shown on the line that initially used the assertion, not buried in the framework code.

This is done by setting default file and line parameters to each assertion method. The default for these options are __FILE__ and __LINE__, respectively, which come from Swift's implicitly defined constants. See the image below for an example.

screen shot 2015-12-27 at 2 04 04 pm

More information can be found in this blog post, Custom Helpers in XCTest.

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.

1 participant