If the simulator fails for whatever reason then the output isn't captured. Here's a sample (test names and classes replaced with snipped
):
Test Case '-[snipped]' passed (0.416 seconds).
Test Suite 'snipped' passed at 2020-09-30 03:49:19.794.
Executed 1 test, with 0 failures (0 unexpected) in 0.416 (0.418) seconds
Test Suite 'snipped.xctest' passed at 2020-09-30 03:49:19.796.
Executed 1 test, with 0 failures (0 unexpected) in 0.416 (0.421) seconds
Test Suite 'All tests' passed at 2020-09-30 03:49:19.797.
Executed 1 test, with 0 failures (0 unexpected) in 0.416 (0.423) seconds
2020-09-30 03:49:23.416 xcodebuild[13914:99691] [MT] IDETestOperationsObserverDebug: 335.611 elapsed -- Testing started completed.
2020-09-30 03:49:23.416 xcodebuild[13914:99691] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2020-09-30 03:49:23.416 xcodebuild[13914:99691] [MT] IDETestOperationsObserverDebug: 335.611 sec, +335.611 sec -- end
Test session results, code coverage, and logs:
/Users/runner/work/1/s/app-ios/Builds/xcresults/snipped.xcresult
Testing failed:
snipped:
The test runner encountered an error (Failed to prepare device 'Test - f204ffed - 20200930' for impending launch. If you believe this error represents a bug, please attach the result bundle at /Users/runner/work/1/s/app-ios/Builds/xcresult. (Underlying Error: Unable to boot the Simulator. launchd failed to respond. (Underlying Error: Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding)))
** TEST EXECUTE FAILED **
Test Suite snipped.xctest started
snipped
β snipped (0.416 seconds)
Tests Passed: 0 failed, 1 total (0.423 seconds)
Test Suite snipped.xctest started
snipped
β snipped (0.416 seconds)
Tests Passed: 0 failed, 1 total (0.423 seconds)
βThe test runner encountered an error (Failed to prepare device 'Test - f204ffed - 20200930' for impending launch. If you believe this error represents a bug, please attach the result bundle at /Users/runner/work/1/s/app-ios/Builds/xcresult. (Underlying Error: Unable to boot the Simulator. launchd failed to respond. (Underlying Error: Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding)))
I can share the full log privately if that's more helpful.