objective c - How to run Tests from iOS Static Library your project is dependent on -


I have created several static libraries that are shared between several iOS projects. I have made several unit tests in these static libraries. I want to test this whenever I examine the project which is included in the stable library.

I have tried to include all the tests inside the "testing" section of the main projects, but this usually occurs in the "simulator is already in use" errors and tests fail. Probably because the last test simulator is using.

scheme-test

For the skin project's main project

SEUSUIKitTests, APIKitTests, PurchaseTests and MCSKINKINKET tests are all exams from static libraries

Am I going to go about this right or should I think differently? ?

** Edit **

It seems that this stack overflow question is having the same problem

** Edit 2 ** radar:

Although it is too much confusing to set up your unit test correctly and One time sync on XCode (thanks to the very clear messages you received), in your case I think the problem is yours.

If you have several static libraries related to multiple projects, then testing for static libraries should not run with the projects referred to them. Every library should be self-centered and it should pack its own tests, and whenever you change something in that particular library, then they should be run.

The idea is that you should only test your code if you link to an external static library, then the author of that library is responsible for properly testing this part. The fact is that you are the author of the external library, it should have no effect on this.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -