Skip to content

Simplify (subprocess) coverage setup #457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Simplify (subprocess) coverage setup #457

merged 1 commit into from
Sep 28, 2023

Conversation

mih
Copy link
Member

@mih mih commented Sep 28, 2023

The previous setup was taken from datalad-core. It comes from a time before pytest. With pytest-cov none of this complexity should be needed anymore.

A similar setup has been implemented as part of
datalad/datalad-ria#6

Closes #453

The previous setup was taken from datalad-core. It comes from a time
before `pytest`. With `pytest-cov` none of this complexity should be
needed anymore.

A similar setup has been implemented as part of
datalad/datalad-ria#6

Closes datalad#453
@mih mih added the semver-patch PR implies patch-level version increment (API stable) label Sep 28, 2023
@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (c8f1efb) 92.12% compared to head (a12f6ca) 92.07%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #457      +/-   ##
==========================================
- Coverage   92.12%   92.07%   -0.06%     
==========================================
  Files         122      122              
  Lines        9107     9107              
  Branches        0     1009    +1009     
==========================================
- Hits         8390     8385       -5     
+ Misses        717      705      -12     
- Partials        0       17      +17     

see 10 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@christian-monch christian-monch left a comment

Choose a reason for hiding this comment

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

LGTM

@mih
Copy link
Member Author

mih commented Sep 28, 2023

It is not clear to me why there are coverage fluctuations at all, but here is the overview of the PR from codecov:

image

Important are uncurl.py and datalad_annex.py, because this is code that only runs in subprocesses. Its coverage goes up.

@mih mih merged commit a3a4e20 into datalad:main Sep 28, 2023
@mih mih deleted the cov branch September 28, 2023 13:28
@mih mih added this to the 1.0.1 milestone Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch PR implies patch-level version increment (API stable)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify subprocess coverage setup
2 participants