Skip to content

Resolve test failure under covr 3.6.5#86

Merged
kyleam merged 4 commits intomainfrom
covr-compat
Jan 15, 2026
Merged

Resolve test failure under covr 3.6.5#86
kyleam merged 4 commits intomainfrom
covr-compat

Conversation

@kyleam
Copy link
Collaborator

@kyleam kyleam commented Jan 14, 2026

Update a test assertion to account for a change in the message covr gives when package installation fails.

Additional commits:

  • simplify a few assertions in the touched test file to use expect_match
  • CI housekeeping

Fixes #84

A create_extra_notes test expects covr to give a "cannot open the
connection" message when package installation fails.  As of covr's
40122df (2025-05-28), part of the 3.6.5 release, covr aborts earlier
with a tailored message.

Fixes #84.
The R 4.0.5 fails due to several packages requiring R 4.0.5.  Instead
of maintaining a growing list of pinned packages, get all packages
from a date-pinned packagemanager.posit.co/cran repo.

Choose 2024-02-06 because it's the first snapshot with officer 0.6.4,
which adds support for the triple border style that mpn.scorecard
uses.
The jobs for R 4.2.3 and 4.3.1 matched the two most recent R versions
on Metworx at the time they were added.  Update them to match the two
most recent R versions on the latest Metworx AMI (25-07.00.00).
Copy link
Collaborator

@barrettk barrettk left a comment

Choose a reason for hiding this comment

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

Looks good! Traced the issue and links and tests pass.

@kyleam kyleam merged commit bcaae05 into main Jan 15, 2026
5 checks passed
@kyleam kyleam deleted the covr-compat branch January 15, 2026 17:24
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.

test failure with covr 3.6.5

2 participants