Re: Unit Tests Always Succeeding (And Not in the Good Way)
Re: Unit Tests Always Succeeding (And Not in the Good Way)
- Subject: Re: Unit Tests Always Succeeding (And Not in the Good Way)
- From: Aaron Montgomery <email@hidden>
- Date: Wed, 05 Sep 2012 18:26:52 -0700
Not at my computer, so I cannot check, but does "success" might mean "ran to completion"? In other words, if the tests fail to run to completion, does Xcode report that they failed (does an uncaught exception lead to a "failure")? At the very least, I agree the message is confusing and probably deserves a bug report.
On Sep 5, 2012, at 5:53 PM, Jeff Kelley <email@hidden> wrote:
> Hello all,
>
> My apologies if this has been discussed before—I searched my archives, but it’s possible I missed something. I’m using Xcode 4.4.1 on OS X 10.8.1, and I can’t get unit tests to fail when trying to test my iOS static library project. Even with the stock template test that looks like so:
>
>> - (void)testExample
>> {
>> STFail(@"Unit tests are not implemented yet in AmazeKitTests");
>> }
>
> Every time I hit ⌘U to test, the “Test Succeeded” pop-up appears, though the failure is marked in Xcode’s Issue Navigator. I can reproduce this by creating a new static library project in Xcode with tests and hitting ⌘U. Is anyone else seeing this? I’ll submit a Radar after this e-mail either way, but if anyone has a workaround that would be spectacular.
>
> Jeff Kelley
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden