I\'ve noticed that there are two options in xcodebuild
\'s man page.
-only-testing:TEST-IDENTIFIER
constr
You can check the video https://developer.apple.com/videos/play/wwdc2016/409/
I used it like this:
-only-testing:UITests/TC_TextArea/test1
for my tests tree. Works fine
Full command looks as follows:
command = 'xcodebuild test
-workspace ' + pathToProjectWorkspaceFolder + '/project.xcworkspace
-scheme yourApp.app
-destination "platform=iOS,name=' + deviceName + '"
-only-testing:UITests/TC_TextArea/test1'