Skip to content

chore: do not report on implicitly covered lines #48

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 6 commits into from
Dec 24, 2019

Conversation

iamogbz
Copy link
Collaborator

@iamogbz iamogbz commented Dec 24, 2019

Description

Do not count

  • Function definition lines
  • Function wrappers
  • if TYPE_CHECKING
  • Import lines

@codecov
Copy link

codecov bot commented Dec 24, 2019

Codecov Report

Merging #48 into dont_serialize_21 will increase coverage by 31.39%.
The diff coverage is n/a.

Impacted file tree graph

@@                  Coverage Diff                  @@
##           dont_serialize_21     #48       +/-   ##
=====================================================
+ Coverage               59.9%   91.3%   +31.39%     
=====================================================
  Files                     14      14               
  Lines                    429     414       -15     
=====================================================
+ Hits                     257     378      +121     
+ Misses                   172      36      -136
Impacted Files Coverage Δ
src/syrupy/serializers/raw_single.py 79.48% <0%> (+3.87%) ⬆️
src/syrupy/session.py 96.84% <0%> (+20.31%) ⬆️
src/syrupy/assertion.py 80.72% <0%> (+34.13%) ⬆️
src/syrupy/serializers/yaml.py 98.18% <0%> (+35.02%) ⬆️
src/syrupy/utils.py 92.3% <0%> (+38.46%) ⬆️
src/syrupy/__init__.py 86.66% <0%> (+39.99%) ⬆️
src/syrupy/serializers/base.py 98.52% <0%> (+42.19%) ⬆️
src/syrupy/terminal.py 92.3% <0%> (+53.84%) ⬆️
src/syrupy/types.py 100% <0%> (+100%) ⬆️
src/syrupy/location.py 100% <0%> (+100%) ⬆️
... and 3 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 c945ba7...d57da46. Read the comment docs.

@iamogbz iamogbz requested a review from noahnu December 24, 2019 15:47
@@ -9,7 +9,6 @@ semver
twine
wheel
py-githooks
pytest-cov
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Pytest coverage plugin was not correctly catching line coverage

@iamogbz iamogbz merged commit ae64458 into dont_serialize_21 Dec 24, 2019
@iamogbz iamogbz deleted the coverage-reporting branch December 24, 2019 16:14
noahnu pushed a commit that referenced this pull request Dec 24, 2019
* chore: ignore vscode settings

* test: remove non-deterministic test for unhashable set

* feat: improve assertion diff #22

fix: compare serialized snapshots, close #21

* wip: define serialize as abstract method

* chore: print full diff in verbose mode

* chore: don't collect coverage from abstract methods

* cr: simplify read raw, success style, toml

* wip: add back requirements.txt

* test: fix coverage reporting (#48)

* chore: do not report on implicitly covered lines

* wip: more explicit

* wip: all is not what it seems

* wip: run coverage without pytest-cov

* wip: fix coverage source config

* wip: fix coverage source config

Co-authored-by: Emmanuel Ogbizi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant