Is it possible to run XCTest based tests under Instruments in Xcode 5?

Dad picture Dad · Jan 9, 2014 · Viewed 11.7k times · Source

Looking at XCTest and Xcode 5 unit testing and not seeing how to run my unit tests under Instruments in Xcode 5...

Specifically I'd like to look for leaks during the test (this doesn't have to be automated in this instance, though clearly that'd be useful).

Possible?

Answer

quellish picture quellish · Jan 30, 2016

In Xcode, right click on your test in the test navigator and select "Profile "TestName"":

instruments profile unit test memory