Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run OCUnit (SenTestingKit) with NSDebugEnabled, NSZombieEnabled, MallocStackLogging?

I have an error similar to the one in this post. Now, I'm sure I've made some stupid error somewhere, probably related to releasing an object or an observer or what-not, but since I can't seem to find a way to debug the code I thought I could use the NSDebugEnabled, NSZombieEnabled and MallocStackLogging (as shown here).

Can it be done using OCUnit? If so, how? I just can't find an "executable" to set these parameters on...

Thanks! Aviad.

like image 225
Aviad Ben Dov Avatar asked Aug 01 '26 20:08

Aviad Ben Dov


1 Answers

Unfortunately, Dave's solution didn't work - I kept getting errors and mistakes. I eventually got GHUnit to work on my project, found the problem by debugging, but it had its own problems so I now use both it and OCUnit which is slightly better integrated in terms of showing the results in the results tab.

sigh. When will we get to see a good, complete unit testing framework for Obj-C?

like image 107
Aviad Ben Dov Avatar answered Aug 04 '26 09:08

Aviad Ben Dov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!