STRUCT
GeneratedTestPlan
Contents
- Properties
namedirectoryconfigurationsdefaultOptionstestTargetstargetSelectionpathisDefault
- Methods
init(name:directory:configurations:defaultOptions:testTargets:targetSelection:)
public struct GeneratedTestPlan: Codable, Hashable, SendableA test plan that Geko generates during project generation.
Unlike a TestPlan that references an existing .xctestplan file on disk, a generated test plan is described declaratively and its .xctestplan file is produced by Geko. Test targets can be listed explicitly via testTargets or resolved automatically from targetSelection scopes.
Properties
name
public var name: StringName of the test plan
directory
public var directory: FilePath?The path to the folder where the test plan will be generated. If the path is nil, it will be written to Derived/TestPlans/<name>.xctestplan
configurations
public var configurations: [Configuration]Configurations
defaultOptions
public var defaultOptions: Options?Default options
testTargets
public var testTargets: [GeneratedTestPlanTestableTarget]Explicit test targets to include in the generated test plan.
targetSelection
public var targetSelection: [TestableTargetSelectionScope]Scopes that resolve which test targets to include in the generated test plan.
path
public var path: FilePathThe path where the generated test plan is written.
isDefault
public var isDefault: BoolWhether this test plan is the default plan.
Methods
init(name:directory:configurations:defaultOptions:testTargets:targetSelection:)
public init(
name: String,
directory: FilePath?,
configurations: [Configuration],
defaultOptions: Options?,
testTargets: [GeneratedTestPlanTestableTarget],
targetSelection: [TestableTargetSelectionScope],
)