Skip to content

test-render-scorecard.R: add assertion to prevent subtest skip#87

Merged
kyleam merged 1 commit intomainfrom
avoid-subtest-skip
Jan 15, 2026
Merged

test-render-scorecard.R: add assertion to prevent subtest skip#87
kyleam merged 1 commit intomainfrom
avoid-subtest-skip

Conversation

@kyleam
Copy link
Collaborator

@kyleam kyleam commented Jan 14, 2026

test-render-scorecard.R has a regression test that checks that render_scorecard doesn't error when called with a relative path. This subtest is skipped as of testthat 3.3.0 (specifically 2e911f4a) because it doesn't have any assertions.

Add an assertion that the PDF output file exists so that the subtest is executed.

Fixes #85.


test-render-scorecard.R has a regression test that checks that
render_scorecard doesn't error when called with a relative path.  This
subtest is skipped as of testthat 3.3.0 (specifically 2e911f4a)
because it doesn't have any assertions.

Add an assertion that the PDF output file exists so that the subtest
is executed.

Fixes #85.
@kyleam kyleam requested a review from barrettk January 14, 2026 20:35
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!

You can ignore the (now edited) comment I made on the other PR

Base automatically changed from covr-compat to main January 15, 2026 17:24
@kyleam kyleam merged commit a00c37c into main Jan 15, 2026
5 checks passed
@kyleam kyleam deleted the avoid-subtest-skip 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.

render-scorecard test skipped as empty with testthat 3.3.0

2 participants