I'm not sure how to turn off the screenshots, but you can put the screenshots in the place where they will be deleted:
xcodebuild -workspace App.xcworkspace \ -scheme "SchemeName" \ -sdk iphonesimulator \ -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.0' -derivedDataPath '/dev/null' test
Note the -derivedDataPath '/dev/null' , which will take screenshots. This will place the screenshots on the null device, which is a special device that discards the information recorded on it.
Hope this helps, happy testing!
cakes88
source share