I\'ve noticed that there are two options in xcodebuild
\'s man page.
-only-testing:TEST-IDENTIFIER
constr
To test an application you need to go with the two steps:
- build the application
xcodebuild build-for-testing \
-workspace "" \
-scheme "" \
-destination "platform=iOS Simulator,name=,OS=" \
-derivedDataPath "All"
- test it without building
xcodebuild test-without-building \
-xctestrun "All/Build/Products/_iphonesimulator-x86_64.xctestrun" \
-destination "platform=iOS Simulator,name=,OS=" '-only-testing:' \
-derivedDataPath 'build/reports/'
Here,
indicates the TEST-IDENTIFIER
that means
How many categories or how many test cases under a category you want to run, that should be included under a test bundle[
]