Unit Testing not displaying failed case text/line
Unit Testing not displaying failed case text/line
- Subject: Unit Testing not displaying failed case text/line
- From: David Bainbridge <email@hidden>
- Date: Wed, 19 Mar 2008 10:34:38 -0500
Xcode 3.0, 10.5.2, Intel machine
Created new Cocoa project, new Unit Test bundle.. followed the Unit
Testing doc on apple and have:
Simple test case:
- (void) setUp
{
}
- (void) testSimple
{
NSNumber *aNumber = [NSNumber numberWithInt:4];
STAssertEquals(0, [aNumber intValue],
@"The number is not zero!",
[aNumber intValue]);
}
When I build I get the following:
/Developer/Tools/RunUnitTests:298: note: Started tests for
architectures 'i386'
/Developer/Tools/RunUnitTests:301: note: Running tests for
architecture 'i386'
/Developer/Tools/RunUnitTests:311: error: Failed tests for
architecture 'i386'
/Developer/Tools/RunUnitTests:318: note: Completed tests for
architectures 'i386'
Why does it not display the text from the STAssertEquals that fails?
and Xcode shows the error in the RunUnitTests script itself instead of
the STAssertEquals line that fails. I've used test cases before but it
was with Xcode 2.5 and worked as expected.
_______________________________________________
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