• 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: Capturing STDOUT from unit test
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Capturing STDOUT from unit test


  • Subject: Re: Capturing STDOUT from unit test
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 24 Jul 2007 15:25:47 -0600


On Jul 24, 2007, at 3:14 PM, Jason Sallis wrote:

I'm trying to write a unit test around an object that logs using NSLog and
printf. To verify that things are being logged correctly, in my unit tests
I want to instantiate an object, get it to log something, and then verify
the log output. Is there any way for me to capture what's output by NSLog
or printf this way?

There is.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Capturing STDOUT from unit test
      • From: "Jason Sallis" <email@hidden>
References: 
 >Capturing STDOUT from unit test (From: "Jason Sallis" <email@hidden>)

  • Prev by Date: Capturing STDOUT from unit test
  • Next by Date: Re: Capturing STDOUT from unit test
  • Previous by thread: Capturing STDOUT from unit test
  • Next by thread: Re: Capturing STDOUT from unit test
  • Index(es):
    • Date
    • Thread