objective c - Finding memory leaks while running iPhone unit tests -
I know how to test the unit on the iPhone - Logic tests that run during the construction phase of the "iPhone Unit Test Bundle".
.
I know that to detect memory leaks using devices - in XCode, run with Menu-> Run-> perf tools-> Leaks.
How do I both? I want to run unit tests and to detect memory leaks in them. If I try to select only the unit test bundle as the target and then "Run with Menu-> Run-> PRF Tools-> Leak" I have not been running an app load in the simulator but the unit test.
The best I can come up with, my actual app target includes the same unit-test files and just opens them to the runtime from the app, any better ideas?
There is no need to check the leaks because they have started and are torn down freely By form If you are trying to debug the leak by running the unit test and seeing leakage, then you are probably better off using anything like XX3.0
Comments
Post a Comment