Re: Unit Testing not displaying failed case text/line
Re: Unit Testing not displaying failed case text/line
- Subject: Re: Unit Testing not displaying failed case text/line
- From: David Bainbridge <email@hidden>
- Date: Wed, 19 Mar 2008 14:00:12 -0500
On Mar 19, 2008, at 11:51 AM, Chris Hanson wrote:
On Mar 19, 2008, at 8:34 AM, David Bainbridge wrote:
STAssertEquals(0, [aNumber intValue],
@"The number is not zero!",
[aNumber intValue]);
Why does it not display the text from the STAssertEquals that fails?
Try this instead:
STAssertEquals(0, [aNumber intValue],
@"The number is not zero, it's %d!",
[aNumber intValue]);
The third parameter to the macro is always a format string.
This still makes no difference. When I change the asssert to the same
value as the number it builds without errors as it should. But when
this assert fails it not only does not display the message in the
console Xcode shows the "error" in the RunUnitTests script and not at
the STAssertEquals line.
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden