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

Use nocov start/end to exclude untestable regions from coverage #151

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

mcol
Copy link
Contributor

@mcol mcol commented Aug 19, 2024

Testing blocks that depend on the result of requireNamespace() is almost impossible, as the packages being checked are by design present on CI and in our development machines. This marks those regions with nocov start and nocov end to tell covr that they shouldn't be counted as missing from coverage. Helps marginally with #121.

Testing blocks that depend on the result of requireNamespace() is almost
impossible, as the packages being checked are by design present on CI and
in our development machines.
@RLumSK RLumSK added this to the v0.9.25 (autumn CRAN release) milestone Aug 19, 2024
Copy link
Member

@RLumSK RLumSK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mcol

@RLumSK RLumSK merged commit a510158 into R-Lum:dev_0.9.x Aug 19, 2024
10 checks passed
@RLumSK
Copy link
Member

RLumSK commented Aug 19, 2024

@thanks @mcol

@mcol mcol deleted the nocov branch August 19, 2024 14:38
@mcol mcol removed this from the v0.9.25 (autumn CRAN release) milestone Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants