Skip to content

feat: r:cran-prep reports which tests actually run in CRAN mode #163

Backlog

Description

@Data-Wise

Type: enhancement

Context: found while shipping medfit 0.22.2, a CRAN fix release (medfit 0.21.3 showed a tests ERROR on three macOS flavors on CRAN's check page).

Evidence

medfit's tests/testthat.R runs a 48-file smoke subset when NOT_CRAN is unset, and the test that failed on CRAN was outside it, so it never ran there in 0.22.2. Nothing in the check output said so; it took a manual measurement to find out.

Proposed change

In r:cran-prep, report test files run versus test files present in the CRAN-mode run and the SKIP count, and warn when files are filtered out by tests/testthat.R.

Acceptance test (must be able to fail)

The output shows files run and files present. Removing one file from the subset regex lowers the files-run count by one.


Update 2026-12-02 (evening)

The smoke subset in medfit is now 49 files, not 48: Data-Wise/medfit#605 added the locale guard to the CRAN-mode regex, which is also a case for the report (a file moved into the subset changes what runs on CRAN, and the output should show it).

CRAN-mode test time is also worth printing with the counts. Locally medfit's CRAN-mode tests take about 8 seconds, while the whole check took 780 to 803 s on CRAN's Intel macOS builders (flavor page and check page, read 2026-12-03), so the local figure says little about the builders' time. Report both the files run and the elapsed test time, and say that builder speed is not reproducible locally.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions