standardOutputContent
All bytes written to the standard output stream of the exit test before it exited.
Declaration
var standardOutputContent: [UInt8]Discussion
The value of this property may contain any arbitrary sequence of bytes, including sequences that are not valid UTF-8 and cannot be decoded by String.init(cString:). Consider using String.init(validating:as:) instead.
When checking the value of this property, keep in mind that the standard output stream is globally accessible, and any code running in an exit test may write to it including the operating system and any third-party dependencies you have declared in your package. Rather than comparing the value of this property with ==, use contains(_:) to check if expected output is present.
To enable gathering output from the standard output stream during an exit test, pass \.standardOutputContent in the observedValues argument of expect(processExitsWith:observing:_:sourceLocation:performing:) or require(processExitsWith:observing:_:sourceLocation:performing:).
If you did not request standard output content when running an exit test, the value of this property is the empty array.