Skip to content

test: Skip R6 body check under covr - #392

Closed
mhovd wants to merge 1 commit into
mainfrom
mhovd-fix-test-coverage-covr-skip
Closed

mhovd wants to merge 1 commit into
mainfrom
mhovd-fix-test-coverage-covr-skip

Conversation

@mhovd

@mhovd mhovd commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Otherwise CI will fail

`shipped example objects embed the current R6 method bodies` compares the
bodies frozen in data/*.rda against the live R6 generators. covr rewrites
every R6 method body in place when it instruments a package
(covr:::traverse_R6), so the instrumented generator can never match the
uninstrumented stored copy and the test-coverage workflow has failed on
every run since the test was added in 6b50eee.

skip_on_covr() keeps the assertion running under R CMD check, where the
bodies are not instrumented and the check does its real job.
Copilot AI lite review requested due to automatic review settings September 16, 2026 08:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved issues were identified.

Pull request overview

This PR skips the R6 method-body consistency test during covr instrumentation while retaining normal checks.

Changes:

  • Adds a covr-specific test skip.
  • Keeps R6 member validation active.
File summaries
File Changes
tests/testthat/test-data-currency.R Skips the method-body test under covr.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.11%. Comparing base (5613287) to head (0a83b68).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #392      +/-   ##
==========================================
+ Coverage   62.73%   63.11%   +0.38%     
==========================================
  Files          51       52       +1     
  Lines       22410    22548     +138     
==========================================
+ Hits        14059    14232     +173     
+ Misses       8351     8316      -35     

see 16 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mhovd mhovd closed this Sep 16, 2026
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.

3 participants