diff --git a/PreviewTests/SupportingFiles/PreviewTests.xctestplan b/PreviewTests/SupportingFiles/PreviewTests.xctestplan index a20468b30..0203cee4d 100644 --- a/PreviewTests/SupportingFiles/PreviewTests.xctestplan +++ b/PreviewTests/SupportingFiles/PreviewTests.xctestplan @@ -27,6 +27,7 @@ ], "defaultOptions" : { "defaultTestExecutionTimeAllowance" : 60, + "diagnosticCollectionPolicy" : "Never", "environmentVariableEntries" : [ { "key" : "IS_RUNNING_UNIT_TESTS", diff --git a/Tools/Sources/Commands/CI/RunTests.swift b/Tools/Sources/Commands/CI/RunTests.swift index 2832b53ed..3dd944fe8 100644 --- a/Tools/Sources/Commands/CI/RunTests.swift +++ b/Tools/Sources/Commands/CI/RunTests.swift @@ -147,12 +147,11 @@ struct RunTests: AsyncParsableCommand { // Use xcodebuild's native retry support to re-run only failing tests // instead of re-running the entire suite. retries=0 means no retries (single run). + // No -test-repetition-relaunch-enabled: it re-runs the whole selection after any failure. if retries > 0 { // -test-iterations is the total number of attempts (initial + retries) command += " -retry-tests-on-failure" command += " -test-iterations \(retries + 1)" - // Ensure retries still happen when a runner exits early. - command += " -test-repetition-relaunch-enabled YES" } if let testName { diff --git a/UnitTests/SupportingFiles/UnitTests.xctestplan b/UnitTests/SupportingFiles/UnitTests.xctestplan index 9000975c3..d731044a8 100644 --- a/UnitTests/SupportingFiles/UnitTests.xctestplan +++ b/UnitTests/SupportingFiles/UnitTests.xctestplan @@ -10,6 +10,7 @@ ], "defaultOptions" : { "defaultTestExecutionTimeAllowance" : 60, + "diagnosticCollectionPolicy" : "Never", "environmentVariableEntries" : [ { "key" : "IS_RUNNING_UNIT_TESTS",