You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/XCTest/Public/XCTestMain.swift
+43-20Lines changed: 43 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,6 @@
32
32
33
33
/// Starts a test run for the specified test cases.
34
34
///
35
-
/// This function will not return. If the test cases pass, then it will call `exit(EXIT_SUCCESS)`. If there is a failure, then it will call `exit(EXIT_FAILURE)`.
36
35
/// Example usage:
37
36
///
38
37
/// class TestFoo: XCTestCase {
@@ -50,28 +49,33 @@
50
49
/// // etc...
51
50
/// }
52
51
///
53
-
/// XCTMain([ testCase(TestFoo.allTests) ])
52
+
/// let exitCode = XCTMain([ testCase(TestFoo.allTests) ])
54
53
///
55
-
/// Command line arguments can be used to select a particular test case or class to execute. For example:
54
+
/// Command line arguments can be used to select a particular test case or class
55
+
/// to execute. For example:
56
56
///
57
57
/// ./FooTests FooTestCase/testFoo # Run a single test case
58
58
/// ./FooTests FooTestCase # Run all the tests in FooTestCase
59
59
///
60
-
/// - Parameter testCases: An array of test cases run, each produced by a call to the `testCase` function
0 commit comments