Skip to content

tests: Verify branch coverage #495

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
Jul 1, 2021

Conversation

l0b0
Copy link
Contributor

@l0b0 l0b0 commented Jun 29, 2021

Stricter than statement coverage, so I had to take the coverage minimum
down one percentage point.

The coverage library does not yet have support for conditional coverage
nedbat/coveragepy#660, which is even
stricter.

Hover over yellow lines in the output of coverage html for a good idea of the difference between this and line coverage.

Related Issue(s): #331

PR Checklist:

  • Code is formatted (run pre-commit run --all-files)
  • Tests pass (run scripts/test)
  • Documentation has been updated to reflect changes, if applicable
  • This PR maintains or improves overall codebase code coverage.
  • Changes are added to the CHANGELOG. See the docs for information about adding to the changelog.

@codecov-commenter
Copy link

codecov-commenter commented Jun 29, 2021

Codecov Report

Merging #495 (fff4751) into main (0426bd1) will decrease coverage by 1.69%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #495      +/-   ##
==========================================
- Coverage   95.65%   93.96%   -1.70%     
==========================================
  Files          71       71              
  Lines        9991     9991              
  Branches        0     1061    +1061     
==========================================
- Hits         9557     9388     -169     
  Misses        434      434              
- Partials        0      169     +169     
Impacted Files Coverage Δ
pystac/serialization/common_properties.py 80.35% <0.00%> (-12.50%) ⬇️
pystac/validation/schema_uri_map.py 76.31% <0.00%> (-10.53%) ⬇️
pystac/validation/stac_validator.py 77.01% <0.00%> (-9.20%) ⬇️
pystac/extensions/hooks.py 80.70% <0.00%> (-7.02%) ⬇️
pystac/serialization/migrate.py 81.66% <0.00%> (-6.67%) ⬇️
pystac/asset.py 86.79% <0.00%> (-5.67%) ⬇️
pystac/layout.py 89.38% <0.00%> (-5.59%) ⬇️
pystac/stac_io.py 80.34% <0.00%> (-5.13%) ⬇️
pystac/link.py 92.18% <0.00%> (-4.69%) ⬇️
pystac/collection.py 93.07% <0.00%> (-4.24%) ⬇️
... and 22 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0426bd1...fff4751. Read the comment docs.

@l0b0 l0b0 force-pushed the verify-branch-coverage branch 2 times, most recently from 3d6512b to 69f6992 Compare June 30, 2021 21:26
@l0b0 l0b0 marked this pull request as ready for review June 30, 2021 21:26
Stricter than statement coverage, so I had to take the coverage minimum
down two percentage points.

The coverage library does not yet have support for conditional coverage
<nedbat/coveragepy#660>, which is even
stricter.
@l0b0 l0b0 force-pushed the verify-branch-coverage branch from 69f6992 to fff4751 Compare July 1, 2021 02:51
@duckontheweb
Copy link
Contributor

Thanks for this, it's definitely catching some cases that were being missed in statement coverage.

@duckontheweb duckontheweb merged commit a4fe4cd into stac-utils:main Jul 1, 2021
@l0b0 l0b0 deleted the verify-branch-coverage branch July 6, 2021 01:15
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.

3 participants