@@ -220,6 +220,7 @@ public struct Scheme: Equatable {
220220 public var captureScreenshotsAutomatically : Bool
221221 public var deleteScreenshotsWhenEachTestSucceeds : Bool
222222 public var testPlans : [ TestPlan ]
223+ public var macroExpansion : String ?
223224
224225 public struct TestTarget : Equatable , ExpressibleByStringLiteral {
225226
@@ -286,7 +287,8 @@ public struct Scheme: Equatable {
286287 debugEnabled: Bool = debugEnabledDefault,
287288 customLLDBInit: String ? = nil ,
288289 captureScreenshotsAutomatically: Bool = captureScreenshotsAutomaticallyDefault,
289- deleteScreenshotsWhenEachTestSucceeds: Bool = deleteScreenshotsWhenEachTestSucceedsDefault
290+ deleteScreenshotsWhenEachTestSucceeds: Bool = deleteScreenshotsWhenEachTestSucceedsDefault,
291+ macroExpansion: String ? = nil
290292 ) {
291293 self . config = config
292294 self . gatherCoverageData = gatherCoverageData
@@ -304,6 +306,7 @@ public struct Scheme: Equatable {
304306 self . customLLDBInit = customLLDBInit
305307 self . captureScreenshotsAutomatically = captureScreenshotsAutomatically
306308 self . deleteScreenshotsWhenEachTestSucceeds = deleteScreenshotsWhenEachTestSucceeds
309+ self . macroExpansion = macroExpansion
307310 }
308311
309312 public var shouldUseLaunchSchemeArgsEnv : Bool {
@@ -620,6 +623,7 @@ extension Scheme.Test: JSONObjectConvertible {
620623 customLLDBInit = jsonDictionary. json ( atKeyPath: " customLLDBInit " )
621624 captureScreenshotsAutomatically = jsonDictionary. json ( atKeyPath: " captureScreenshotsAutomatically " ) ?? Scheme . Test. captureScreenshotsAutomaticallyDefault
622625 deleteScreenshotsWhenEachTestSucceeds = jsonDictionary. json ( atKeyPath: " deleteScreenshotsWhenEachTestSucceeds " ) ?? Scheme . Test. deleteScreenshotsWhenEachTestSucceedsDefault
626+ macroExpansion = jsonDictionary. json ( atKeyPath: " macroExpansion " )
623627 }
624628}
625629
@@ -636,6 +640,7 @@ extension Scheme.Test: JSONEncodable {
636640 " language " : language,
637641 " region " : region,
638642 " coverageTargets " : coverageTargets. map { $0. reference } ,
643+ " macroExpansion " : macroExpansion
639644 ]
640645
641646 if gatherCoverageData != Scheme . Test. gatherCoverageDataDefault {
0 commit comments