Re: Capturing STDOUT from unit test
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