Mats Stijlaart
Mats Stijlaart

Reputation: 5098

Xcode Memory Leaks detection in Unit Test

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

Answers (1)

Johannes Rudolph
Johannes Rudolph

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

Related Questions