Skip to content
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

@abstractmethod's can be excluded from code coverage #28

Closed
pmeier opened this issue Oct 3, 2021 · 1 comment
Closed

@abstractmethod's can be excluded from code coverage #28

pmeier opened this issue Oct 3, 2021 · 1 comment

Comments

@pmeier
Copy link

pmeier commented Oct 3, 2021

Given that an @abstractmethod cannot be called by definition, they should be excluded from the code coverage. This can be achived by adding a .coveragerc file to the root of the repository with the following content:

[report]

exclude_lines =
  @abstractmethod
a-ws-m added a commit that referenced this issue Oct 14, 2021
@a-ws-m
Copy link
Owner

a-ws-m commented Oct 14, 2021

Thanks for the tip, I didn't know about .coveragerc!

@pmeier pmeier closed this as completed Oct 15, 2021
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

No branches or pull requests

2 participants