Adding coveragerc

This commit is contained in:
Kkevsterrr 2019-12-12 20:49:32 -05:00
parent 03893f5af6
commit e4c7cf567b
2 changed files with 18 additions and 0 deletions

15
.coveragerc Normal file
View File

@ -0,0 +1,15 @@
[run]
branch = True
source = ./
[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
def get_args
ignore_errors = True
omit =
tests/*
examples/*

View File

@ -37,3 +37,6 @@ install:
script:
- sudo python3 -m pytest --cov=./ -sv tests/ --tb=short
after_script:
- bash <(curl -s https://codecov.io/bash) -t 83a45966-78ce-44c2-80b3-964ecab4a53d || echo "Codecov did not collect coverage reports"