Reputation: 5098
Is it possible to test if memory leaks occur when running a Unit Test? I want to check if my memory management is handled correctly.
Thanks
Upvotes: 3
Views: 1595
Reputation: 35741
You can try running your unit tests under Instruments with the Leak Detection Instrument.
However, this will only work for Application (bundle) tests, if you're using OCUnit. If you happen to use something else, please let us know.
Upvotes: 2