Skip to content

Make swift test --show-code-cov-path work with swift-testing #7094

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

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

grynspan
Copy link
Contributor

This PR ensures that the aforementioned option behaves correctly when --enable-experimental-swift-testing is passed.

As it stands, --show-code-cov-path is implemented as a subcommand but behaves like an option; this PR removes the subcommand so that it "just works" without regard for other options.

A longer-term solution could be to make it into a proper subcommand (e.g. swift test show-path code-coverage.) That would ensure that we would get appropriate output from Swift Argument Parser when mixing it with other (nonsensical) options.

@MaxDesiatov MaxDesiatov changed the title Make sure swift test --show-code-cov-path works when swift-testing is enabled. Make swift test --show-code-cov-path work with swift-testing Nov 15, 2023
…is enabled.

This PR ensures that the aforementioned option behaves correctly when `--enable-experimental-swift-testing` is passed.

As it stands, `--show-code-cov-path` is implemented as a subcommand but behaves like an option; this PR removes the subcommand so that it "just works" without regard for other options.

A longer-term solution could be to make it into a proper subcommand (e.g. `swift test show-path code-coverage`.) That would ensure that we would get appropriate output from Swift Argument Parser when mixing it with other (nonsensical) options.
@grynspan grynspan force-pushed the jgrynspan/show-code-cov-path-swift-testing branch from 99d31e7 to 846c4e8 Compare November 18, 2023 14:27
@grynspan grynspan marked this pull request as ready for review November 18, 2023 14:30
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please test Windows

@grynspan grynspan merged commit 8546020 into main Nov 28, 2023
@grynspan grynspan deleted the jgrynspan/show-code-cov-path-swift-testing branch November 28, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants