@@ -13,19 +13,22 @@ struct Configurations: Codable, Equatable {
1313 let excludedPaths : [ String ]
1414 let excludedTargets : [ String ]
1515 let excludedPackages : [ String ]
16+ let excludeAllSPMTestTargets : Bool
1617 let diagrams : DiagramsConfiguration ?
1718
1819 init (
1920 configurations: [ String : Configuration ] = [ : ] ,
2021 excludedTargets: [ String ] = [ ] ,
2122 excludedPaths: [ String ] = [ ] ,
2223 excludedPackages: [ String ] = [ ] ,
24+ excludeAllSPMTestTargets: Bool = false ,
2325 diagrams: DiagramsConfiguration ? = nil
2426 ) {
2527 self . configurations = configurations
2628 self . excludedTargets = excludedTargets
2729 self . excludedPaths = excludedPaths
2830 self . excludedPackages = excludedPackages
31+ self . excludeAllSPMTestTargets = excludeAllSPMTestTargets
2932 self . diagrams = diagrams
3033 }
3134
@@ -34,6 +37,7 @@ struct Configurations: Codable, Equatable {
3437 case excludedPaths
3538 case excludedPackages
3639 case excludedTargets
40+ case excludeAllSPMTestTargets
3741 case diagrams
3842 }
3943
@@ -43,10 +47,12 @@ struct Configurations: Codable, Equatable {
4347 let excludedTargets = try ? container. decode ( [ String ] . self, forKey: . excludedTargets)
4448 let excludedPackages = try ? container. decode ( [ String ] . self, forKey: . excludedPackages)
4549 let excludedPaths = try ? container. decode ( [ String ] . self, forKey: . excludedPaths)
50+ let excludeAllSPMTestTargets = try ? container. decode ( Bool . self, forKey: . excludeAllSPMTestTargets)
4651 self . diagrams = try ? container. decode ( DiagramsConfiguration . self, forKey: . diagrams)
4752 self . excludedTargets = excludedTargets ?? [ ]
4853 self . excludedPackages = excludedPackages ?? [ ]
4954 self . excludedPaths = excludedPaths ?? [ ]
55+ self . excludeAllSPMTestTargets = excludeAllSPMTestTargets ?? false
5056 self . configurations = configurations ?? [ : ]
5157 }
5258}
0 commit comments