• 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: "Jason Sallis" <email@hidden>
  • Date: Tue, 24 Jul 2007 15:54:28 -0600

Uh, any chance for some elaboration on that?

On 7/24/07, Nick Zitzmann <email@hidden> wrote:


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: Nick Zitzmann <email@hidden>
References: 
 >Capturing STDOUT from unit test (From: "Jason Sallis" <email@hidden>)
 >Re: Capturing STDOUT from unit test (From: Nick Zitzmann <email@hidden>)

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