So after some investigation. I found having the async setup() function caused this behaviour to prevent retries. When moving to the synchronous setup function I no longer get issue. The problem being I need to do async code in my setup...
If I move my code to the following, test repetitions now work and I see no such errors
override func setUp() {
super.setUp()
continueAfterFailure = false
// setup async seems to prevent test repetitions from working
let exp = expectation(description: "setup")
Task {
try await setupWebApp(router: router)
exp.fulfill()
}
wait(for: [exp], timeout: 10)
}
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: