• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unit Testing not displaying failed case text/line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Unit Testing not displaying failed case text/line
      • From: "Sean McBride" <email@hidden>
    • Re: Unit Testing not displaying failed case text/line
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: Designating an iPhone for development
  • Next by Date: Trying to embed Ruby - How are frameworks discovered
  • Previous by thread: Re: linking to a static lib and *not* a dynamic lib when both are present
  • Next by thread: Re: Unit Testing not displaying failed case text/line
  • Index(es):
    • Date
    • Thread