I can not answer your question definitively without seeing a sample of the test code, however, your case makes me suspicious of a couple things.
Basically what is happening is that the app is creating new processes for each test you run. A memory leak somewhere inside the code would be the first problem to investigate. If you are leaking memory, the testing framework spinning up a bunch of processes could cause the crash and allow that issue to fly under the radar during normal running.
Also, unless you are de-initializing the controllers explicitly through the tear down function in your test class, the process is generally just killed at the end of the test. If you want to test your reinitialization I would suggest explicitly triggering a tear down in the tests to test your memory allocation behavior. Also, the Xcode Analyze feature may be of use to you here.
If you could post a sample of your test code that would be a great help and I will edit my answer accordingly.
deinit
methods were not called? Also, if possible, please post the test code. It might help a lot. – Faheydeinit
, and app didnt stop whileuitesting
. Howeverdeinit
is called while I compile and use the app manually. – Wholewheatdeinit
. I created a new project and set up test for it but could not reproduce the issue. You really should update the question with a Minimal, Complete, and Verifiable example of the issue. – Fahey