mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 12:28:29 +00:00
Set CI RunTests command retries default to 0, use 3 only for running unit tests.
This commit is contained in:
committed by
Stefan Ceriu
parent
faa3f7dc33
commit
737b907d26
@@ -25,7 +25,7 @@ struct RunTests: AsyncParsableCommand {
|
|||||||
var osVersion = "26.1"
|
var osVersion = "26.1"
|
||||||
|
|
||||||
@Option(help: "Number of times to retry failed tests. Only the failing tests are re-run, not the entire suite.")
|
@Option(help: "Number of times to retry failed tests. Only the failing tests are re-run, not the entire suite.")
|
||||||
var retries = 3
|
var retries = 0
|
||||||
|
|
||||||
@Option(help: "When set, create a simulator with this name if one doesn't already exist.")
|
@Option(help: "When set, create a simulator with this name if one doesn't already exist.")
|
||||||
var createSimulatorName: String?
|
var createSimulatorName: String?
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ struct UnitTests: AsyncParsableCommand {
|
|||||||
try await RunTests.parse([
|
try await RunTests.parse([
|
||||||
"--scheme", "UnitTests",
|
"--scheme", "UnitTests",
|
||||||
"--device", device,
|
"--device", device,
|
||||||
"--os-version", osVersion
|
"--os-version", osVersion,
|
||||||
|
"--retries", "3"
|
||||||
]).run()
|
]).run()
|
||||||
} catch {
|
} catch {
|
||||||
failures.append("Unit tests failed: \(error)")
|
failures.append("Unit tests failed: \(error)")
|
||||||
|
|||||||
Reference in New Issue
Block a user