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

Unable to disable attach debugger when generating TestAction with TestPlan #4424

Closed
Andrea-Scuderi opened this issue May 7, 2022 · 0 comments · Fixed by #4425 or #4458
Closed

Unable to disable attach debugger when generating TestAction with TestPlan #4424

Andrea-Scuderi opened this issue May 7, 2022 · 0 comments · Fixed by #4425 or #4458
Labels
type:enhancement New feature or request

Comments

@Andrea-Scuderi
Copy link
Contributor

Describe the bug and the expected behavior

The TestAction.testPlans(...) function doesn't allow to specify attachDebugger: false`
Example

...
Scheme(
                name: "\(name)UITests",
                shared: true,
                buildAction:  .buildAction(
                    targets: ["\(name)", "\(name)UITests"]
                ),
                testAction: .testPlans(
                    [.relativeToRoot("TestPlan/\(name)UITests.xctestplan")],
                    configuration: .debug,
                    preActions: [],
                    postActions: []
                )
 )
...

The outcome of the current behaviour consists in the generation of a schema with Debugger executable always checked.

Screenshot 2022-05-07 at 09 09 34

Desired outcome:

Allow to specify the attachDebugger: false in TestAction.testPlans(...)

Screenshot 2022-05-07 at 07 07 25

...
Scheme(
                name: "\(name)UITests",
                shared: true,
                buildAction:  .buildAction(
                    targets: ["\(name)", "\(name)UITests"]
                ),
                testAction: .testPlans(
                    [.relativeToRoot("TestPlan/\(name)UITests.xctestplan")],
                    configuration: .debug,
                    attachDebugger: false,
                    preActions: [],
                    postActions: []
                )
)
...

Motivation:

Attaching debugger during UI and UnitTest slows down the tests execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
None yet
2 participants