Skip to content

Commit c13db67

Browse files
committed
Add a note about the command line argument to the README
1 parent fe76924 commit c13db67

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ Also, this version of XCTest does not use the external test runner binary. Inste
108108
XCTMain([testCase(TestNSString.allTests), testCase(TestNSArray.allTests), testCase(TestNSDictionary.allTests)])
109109
```
110110

111-
The `XCTMain` function does not return, and will cause your test app to exit with either `0` for success or `1` for failure.
111+
The `XCTMain` function does not return, and will cause your test app to exit with either `0` for success or `1` for failure. Command line arguments given to the executable can be used to select a particular test or test case to execute. For example:
112+
113+
```sh
114+
./FooTests FooTestCase/testFoo # Run a single test method
115+
./FooTests FooTestCase # Run all the tests in FooTestCase
116+
```
112117

113118
We are currently investigating ideas on how to make these additional steps for test discovery automatic when running on the Swift runtime.

0 commit comments

Comments
 (0)