diff --git a/Sources/TestConfigurator/xctestplanner/Core/Entity/TestPlanModel.swift b/Sources/TestConfigurator/xctestplanner/Core/Entity/TestPlanModel.swift index 8cc33db..d0f441b 100644 --- a/Sources/TestConfigurator/xctestplanner/Core/Entity/TestPlanModel.swift +++ b/Sources/TestConfigurator/xctestplanner/Core/Entity/TestPlanModel.swift @@ -40,6 +40,7 @@ public struct DefaultOptions: Codable { public var testRepetitionMode: String? public var maximumTestRepetitions: Int? public var maximumTestExecutionTimeAllowance: Int? + public var targetForVariableExpansion: Target? } // MARK: - CommandLineArgumentEntry diff --git a/Sources/TestConfigurator/xctestplanner/Core/Helper/TestPlanHelper.swift b/Sources/TestConfigurator/xctestplanner/Core/Helper/TestPlanHelper.swift index fb9be9f..542fc28 100644 --- a/Sources/TestConfigurator/xctestplanner/Core/Helper/TestPlanHelper.swift +++ b/Sources/TestConfigurator/xctestplanner/Core/Helper/TestPlanHelper.swift @@ -22,7 +22,7 @@ public class TestPlanHelper { static func writeTestPlan(_ testPlan: TestPlanModel, filePath: String) throws { Logger.message("Writing updated test plan to file: \(filePath)") let encoder = JSONEncoder() - encoder.outputFormatting = .prettyPrinted + encoder.outputFormatting = [.prettyPrinted, .sortedKeys] let updatedData = try encoder.encode(testPlan) let url = URL(fileURLWithPath: filePath)