[Adium-devl] Assertion failures

BJ Homer bjhomer at gmail.com
Wed Jul 30 15:23:40 UTC 2008


If the assertions are only in test cases, you can use STAssertTrue() /
STAssertFalse() from <SenTestingKit/SenTestingKit.h>. The assertions are
caught and not displayed in the output.  I suppose you could use them even
if you're not writing test cases, but you'd still have to include the
testing kit.
-BJ


On Wed, Jul 30, 2008 at 12:02 AM, Peter Hosey <prh at boredzo.org> wrote:

> On Jul 29, 2008, at 22:28:52, Colin Barrett wrote:
> > It would be nice for those asserts to not show up in the test
> > output, but I'm less worried.
>
> An *unexpected* assertion failure shows up as a test-case failure:
>
>        NSAssert(NO, @"Dark matter reaction in 3... 2... 1...");
>
> 2008-07-29 23:01:25.957 otest[1926:80f] *** Assertion failure in -
> [TestColorAdditions testBlackColorIsMedium], /Volumes/Home-etc/Users/
> prh/Projects/@otherpeoplesprojects/adium/trunk/UnitTests/
> TestColorAdditions.m:82
> Unknown.m:0: error: -[TestColorAdditions testBlackColorIsMedium] :
> Dark matter reaction in 3... 2... 1...
>
> I should file a bug about the "Unknown.m:0" thing.
>
>
> _______________________________________________
> Adium-devl mailing list
> Adium-devl at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20080730/a9c6e56f/attachment-0001.html>


More information about the devel mailing list