Re: unit testing a framework - 'never finished bootstrapping'
Re: unit testing a framework - 'never finished bootstrapping'
- Subject: Re: unit testing a framework - 'never finished bootstrapping'
- From: Joar Wingfors <email@hidden>
- Date: Mon, 13 Jul 2015 21:28:13 -0700
Hi Roland,
With the information currently provided I cannot say what’s wrong with your current setup. If you can attach your project to a bug report and send it to us I imagine we could quickly identify why it isn’t working.
If you’d rather try to just get things working on your own I’d advice you to create a new unit test target in the same project and see if you have better luck with that. Initially just try to run the stub test method as you get it from the template. As a second step, have the test target link your framework and call some API from your test method. Taking one step at a time like this should allow you to pinpoint where things are working, and what makes them no longer work.
You should absolutely be able to test frameworks, and as long as your destination is OS X or the iOS simulator you don’t need an application to host them.
If you were to file a bug report, I’d also be interested in which version of OS X, iOS and Xcode you’re using.
Thanks,
Joar
> On 13 Jul 2015, at 19:24, Roland King <email@hidden> wrote:
>
> Thought I’d write some unit tests for a framework I’ve been working on for a while. When that was originally added a test target was created with it with the usual two template test methods.
>
> Out of the box that doesn’t even work. Running ‘Test’ or clicking the run single test button next to either of the two tests builds then waits a few seconds and gives me ‘Test Failed’. The test navigator shows no tests were actually run and if you find the Log button all you get is
>
> Test target MyTestTarget encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
>
> That’s currently game over, I haven’t managed to get any further than that. I did check the test General Settings and the Host Application is set to ‘none’, but there’s nothing to set it to, there is no application, it’s a framework. I believe you should be able to test frameworks.
>
> Any suggestions?
> _______________________________________________
> 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