Skip to content

Commit

Permalink
Add passing test arguments to docs/ios/build_instructions.md
Browse files Browse the repository at this point in the history
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 <sdefresne@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#487441}
  • Loading branch information
Vaclav Brozek authored and Commit Bot committed Jul 18, 2017
1 parent 1c51b4b commit 09fe5ec
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/ios/build_instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,17 @@ command line, you can use `iossim`. For example, to run a debug build of
$ 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
Expand Down

0 comments on commit 09fe5ec

Please sign in to comment.