Created
May 8, 2025 19:38
-
-
Save ChrisMash/c8a2cb6f941c9bf6f5f7322c9b93cddd to your computer and use it in GitHub Desktop.
Skipping UI tests when too many have failed with XCTestObservation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func setUpWithError() throws { | |
continueAfterFailure = false | |
if TestObserver.shared.shouldSkipAllTests { | |
throw XCTSkip("Too many tests have failed, skipping remainder") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment