Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show failures on same line as caller #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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