Add passing test arguments to docs/ios/build_instructions.md
This CL mentions iossim's -c option for passing aruments to the test app in the
iOS build instructions.
Bug: None
Change-Id: I80ccddb56e142b547117297ae0fdb85e2b8d63f3
Reviewed-on: https://chromium-review.googlesource.com/575047
Commit-Queue: Sylvain Defresne <[email protected]>
Reviewed-by: Sylvain Defresne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#487441}
diff --git a/docs/ios/build_instructions.md b/docs/ios/build_instructions.md
index 570a106..1f447583 100644
--- a/docs/ios/build_instructions.md
+++ b/docs/ios/build_instructions.md
@@ -226,6 +226,17 @@
$ out/Debug-iphonesimulator/iossim out/Debug-iphonesimulator/Chromium.app
```
+### Passing arguments
+
+Arguments needed to be passed to the test application through `iossim`, such as
+`--gtest_filter=SomeTest.FooBar` should be passed through the `-c` flag:
+
+```shell
+$ out/Debug-iphonesimulator/iossim -d "iPhone 6s" -s 10.0 \
+ -c "--gtest_filter=SomeTest.FooBar --gtest_repeat=3" \
+ out/Debug-iphonesimulator/base_unittests.app
+```
+
### Running EarlGrey tests
EarlGrey tests are run differently than other test targets, as there is an