How to list all test cases using xcodebuild without running?

Using xcodebuild, I can run a specific test or group of tests. But is there a way to list all tests without running them using xcodebuild or any other tool that comes with xcode? Facebook xctool can do this, but I hope not to accept dependency on third-party tools.

+4
source share
1 answer

I don’t think there is a way to automatically sort ... but if you want to test one of the classes with one command, you can run your test one by one with this command:

xcodebuild test -destination 'platform = iOS Simulator, name = iPhone 7, OS = 11.1' '- : APPNAME-TESTTARGET/NAMEOFTHECLASS'

, :

 xcodebuild -list
-1

Source: https://habr.com/ru/post/1682075/


All Articles