File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Sources/Testing/Testing.docc Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ library records an issue.
92
92
93
93
By default, the child process is configured without a standard output or
94
94
standard error stream. If your test needs to review the content of either of
95
- these streams, you can pass its key path in the ` observedValues ` argument:
95
+ these streams, you can pass its key path to `` expect(exitsWith:observing:_:sourceLocation:performing:) ``
96
+ or `` require(exitsWith:observing:_:sourceLocation:performing:) `` :
96
97
97
98
``` swift
98
99
extension Customer {
@@ -126,8 +127,9 @@ extension Customer {
126
127
running in an exit test may write to it including the operating system and any
127
128
third-party dependencies you have declared in your package.
128
129
129
- The actual exit condition of the child process is always reported by the testing
130
- library even if you do not specify it in ` observedValues ` .
130
+ The testing library always sets `` ExitTest/Result/statusAtExit `` to the actual
131
+ exit status of the child process (as reported by the system) even if you do not
132
+ pass it.
131
133
132
134
### Constraints on exit tests
133
135
You can’t perform that action at this time.
0 commit comments