• 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
Re: Unit Testing not displaying failed case text/line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Unit Testing not displaying failed case text/line (From: David Bainbridge <email@hidden>)
 >Re: Unit Testing not displaying failed case text/line (From: Chris Hanson <email@hidden>)

  • Prev by Date: re: ResMerger failure
  • Next by Date: Re: Animation in Size Inspector fo IB 3.x
  • Previous by thread: Re: Unit Testing not displaying failed case text/line
  • Next by thread: Re: Unit Testing not displaying failed case text/line
  • Index(es):
    • Date
    • Thread