Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attachDebugger parameter to TestAction.testPlans(...) #4425

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion Sources/ProjectDescription/TestAction.swift
Expand Up @@ -99,12 +99,14 @@ public struct TestAction: Equatable, Codable {
/// - Parameters:
/// - testPlans: List of test plans to run.
/// - configuration: Configuration to be used.
/// - attachDebugger: A boolean controlling whether a debugger is attached to the process running the tests.
/// - preActions: Actions to execute before running the tests.
/// - postActions: Actions to execute after running the tests.
/// - Returns: A test action.
public static func testPlans(
_ testPlans: [Path],
configuration: ConfigurationName = .debug,
attachDebugger: Bool = true,
preActions: [ExecutionAction] = [],
postActions: [ExecutionAction] = []
) -> Self {
Expand All @@ -113,7 +115,7 @@ public struct TestAction: Equatable, Codable {
targets: [],
arguments: nil,
configuration: configuration,
attachDebugger: true,
attachDebugger: attachDebugger,
expandVariableFromTarget: nil,
preActions: preActions,
postActions: postActions,
Expand Down