mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Improve integration test diagnostics in an attempt to catch run crashes
This commit is contained in:
@@ -32,6 +32,10 @@ struct IntegrationTests: AsyncParsableCommand {
|
||||
} catch {
|
||||
testsFailed = true
|
||||
logger.error("\n❌ Integration tests failed.\n")
|
||||
|
||||
// Preserve the app's logs alongside the results so that they can be uploaded as artifacts.
|
||||
logger.info("🗂️ Collecting log files…")
|
||||
_ = try? await CI.run(.path("/bin/zsh"), ["-cu", "cp /Users/Shared/console* \(CI.testOutputDirectory)"])
|
||||
}
|
||||
|
||||
// Validate logs only when tests passed — log files won't be meaningful otherwise
|
||||
|
||||
Reference in New Issue
Block a user