Re: Missing unit tests in Test Scheme
Re: Missing unit tests in Test Scheme
- Subject: Re: Missing unit tests in Test Scheme
- From: Eeyore <email@hidden>
- Date: Sun, 29 Apr 2012 22:07:26 -0700
Please file a bug with Apple as well. I'm guessing OCHamcrest is valid C++ and should be usable with Xcode.
Aaron
On Apr 29, 2012, at 8:25 PM, Damian Carrillo <email@hidden> wrote:
> Thanks, Aaron. Your suggestion of checking the #if and #ifdef was in fact correct. I was using the OCHamcrest library for convenience, however I think that it was tickling Xcode's implementation in such a way that the problem I described earlier was able to be manifested. I'm not sure of all of the implementation details of the library, but I do know that it uses templated Objective-C++ (as can be seen in http://bit.ly/JUVdrt).
>
> Ultimately, I stripped all of my test cases of the Hamcrest assertThat(...) and replaced them with SenTest assertions. After I did this, all of the tests were displayed in the scheme again. I will point this out to the author of the library in case he is not aware of this or has more insight into it.
>
> Once again, thanks.
>
> Damian
>
> On Apr 29, 2012, at 1:11 PM, Eeyore wrote:
>
>> I've seen this before as well. The tests still run, they just don't appear in the Scheme editor. Something happened in the last couple of months that "fixed" the issue on my machine. I am not sure what the exact change that caused it to start working correctly, however, things that might be worth investigating: updating Xcode (I am using 4.3.2) and looking at conditionally compiled code (#if and #ifdef blocks).
>>
>> Aaron
>>
>> On Apr 29, 2012, at 9:23 AM, Damian Carrillo wrote:
>>
>>> I have a basic iPhone application with a single application target and a testing target. The scheme associated with the application target is configured to run unit tests. Essentially, my project has the stock project layout, but I have added around 25 additional test files to the test target. I have ensured that all of my test files are members of the test target both in the target's Compilation Phase tab and in the Utilities Pane.
>>>
>>> Now, the problem is that when I go to disable and enable the tests that are being run, not all of them are represented in the scheme. I edit the scheme, select the Test action, then expand the list of tests for the particular testing target. Sometimes, I see all of the tests briefly represented and then Xcode culls the list after a fraction of a second. Other times, only the truncated list of tests are shown.
>>>
>>> I use git, and make extensive use of feature branches, and I think merging my project file may be what causes this predicament. Does anybody know of a way to avoid this, or to reinitialize the list of test files for a scheme? I've rebuilt my project in the past, and if I continue to do that, at this rate, I will be doing it around once a week.
>>>
>>> Thanks in advance,
>>>
>>> Damian Carrillo
>>> _______________________________________________
>>> 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