summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2020-07-08 14:55:00 -0400
committerJoel Fischer <joeljfischer@gmail.com>2020-07-08 14:55:00 -0400
commitd155003708bd2b33a0afb736ecaf6557b6405ca8 (patch)
treea16704bbbaaa6b594c47f7a64102b79f0297cb61
parent94b963d06a9e16eed314c27c1427d072da8f42e3 (diff)
downloadsdl_ios-bugfix/issue-1703-update-readme-tests-script.tar.gz
Update README with updated test scriptbugfix/issue-1703-update-readme-tests-script
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 55b24f4ac..69d85ed3a 100644
--- a/README.md
+++ b/README.md
@@ -156,7 +156,9 @@ cd ../
At this point, you can run tests from Xcode, or, if you wish to run the tests exactly as they will be run on the CI server, run:
```bash
-xcodebuild -project "SmartDeviceLink-iOS.xcodeproj" -scheme "SmartDeviceLink" -sdk "iphonesimulator10.0" -destination "OS=10.0,name=iPhone 7" -configuration Debug ONLY_ACTIVE_ARCH=NO RUN_CLANG_STATIC_ANALYZER=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES ENABLE_TESTABILITY=YES test
+xcodebuild build-for-testing -project SmartDeviceLink-iOS.xcodeproj -destination platform=iOS Simulator,name=iPhone 11,OS=13.5 -scheme SmartDeviceLink
+
+set -o pipefail && xcodebuild test-without-building -project SmartDeviceLink-iOS.xcodeproj -destination platform=iOS Simulator,name=iPhone 11,OS=13.5 -scheme SmartDeviceLink -configuration Debug ONLY_ACTIVE_ARCH=NO RUN_CLANG_STATIC_ANALYZER=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES ENABLE_TESTABILITY=YES
```
You can optionally pipe the result to [xcpretty](https://github.com/supermarin/xcpretty).