Alerty
Alerty

Reputation: 5945

iOS: Run a single unit test from the command line

I've been trying to find a way to run a single iOS unit test among multiple tests with the command line on an iOS device.

Here is what I've found thus far...

I know that it is possible to select the tests I wish to run in a scheme, but this is problematic since I would need a very skillful & patient monkey to manually do this in a build system.

By the way, I am not using Apple's own Continuous Integration system with bots and using it is out of question because another build system is used for every other platform.

My question is: How can I run a single unit test (XCTest) from the command line with build automation in mind?


P.S: I don't have any code signing issues.

Upvotes: 1

Views: 1396

Answers (1)

harryhorn
harryhorn

Reputation: 912

Try using xctool which can run tests on devices https://github.com/facebook/xctool

Upvotes: 1

Related Questions