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

Print code coverage results again in test-coverage.yml workflow #949

Open
LDSamson opened this issue Nov 21, 2024 · 0 comments
Open

Print code coverage results again in test-coverage.yml workflow #949

LDSamson opened this issue Nov 21, 2024 · 0 comments
Labels
feature a feature request or enhancement

Comments

@LDSamson
Copy link

Just a small suggestion:

Since the test coverage workflow was updated in this commit: a10b63e
the test coverage is not printed anymore in the GHA since now covr::package_coverage is used instead of covr::codecov. See here:

cov <- covr::package_coverage(
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
covr::to_cobertura(cov)

I liked the previous behavior, that the results were printed. For example, if an upload fails, you can still check the GHA for a brief code coverage overview.

To restore the old functionality, I just added a simple print statement in my own workflow (print(cov)). This is also what the old covr::coverage() function did under the hood.

Maybe you would find it useful to include this in the general example again.

@LDSamson LDSamson added the feature a feature request or enhancement label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant