test: raise covr coverage toward 90% target - #6
Merged
bbuchsbaum merged 1 commit intoSep 8, 2026
Merged
Conversation
Raise meaningful coverage for exported DataLad helpers, tf_prefetch, tf_copy_to_dest, NIfTI/GIFTI reader dispatch, config/env boundaries, and CLI wipe/help branches without weakening existing assertions. Co-authored-by: bbuchsbaum <bbuchsbaum@users.noreply.github.com>
bbuchsbaum
marked this pull request as ready for review
August 28, 2026 14:38
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6 +/- ##
===========================================
+ Coverage 80.00% 93.11% +13.11%
===========================================
Files 12 12
Lines 1090 1090
===========================================
+ Hits 872 1015 +143
+ Misses 218 75 -143 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Raises meaningful R package test coverage for the portfolio
coverage-targetgate (issue #5).test-coverage(this PR)Adds focused tests for previously thin public paths: DataLad install/get/update success and CLI failure,
tf_prefetch,tf_copy_to_dest, NIfTI/GIFTI reader dispatch, config/env boundaries, skeleton remote/MD5 paths, describe print edges, and CLI wipe/help branches.Motivation
Issue #5 reports measured line coverage at 80% against a 90% portfolio target. This PR only adds meaningful tests; it does not weaken expectations, skip broadly, or add unjustified
# nocovannotations.Cache / data implications
None. Tests continue to use tempdir caches and the bundled skeleton (
templateflow.test.forcebundled), with network mocked where downloads would otherwise be required.Checks run
test-coverage→ 93.12% (pass)R-CMD-check(ubuntu release/devel/oldrel, macos release) → passpkgdown→ passtestthatsuite → 0 failures / 0 errorsmain): legacy workflow.github/workflows/r.ymljobbuild (3.6.3)fails atsetup-rwith HTTP 404 for R 3.6.3 (unavailable on current macOS runners). That matrix version is also below packageDepends: R (>= 4.1.0). Not changed here to keep the PR scoped to the coverage gate; modernR-CMD-checkalready covers supported R versions.Issue #5 left open until the portfolio monitor verifies the merged default-branch SHA and hosted evidence.