CatchingFire icon indicating copy to clipboard operation
CatchingFire copied to clipboard

Show failures on same line as caller

Open joemasilotti opened this issue 9 years ago • 0 comments

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.

joemasilotti avatar Dec 27 '15 19:12 joemasilotti