Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
add python codecov (#2976)
* include pytest-cov plugin
- Loading branch information
1 parent
86bfe82
commit c4057d3
Showing
5 changed files
with
110 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# https://coverage.readthedocs.io/en/latest/config.html | ||
|
||
[run] | ||
source = src/python/turicreate/ | ||
branch = True | ||
parallel = True | ||
|
||
[report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Don't complain about missing debug-only code: | ||
def __repr__ | ||
if self\.debug | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if False: | ||
if __name__ == .__main__.: | ||
|
||
ignore_errors = True | ||
|
||
omit = | ||
*/__init__.py | ||
src/python/turicreate/test/* | ||
src/python/turicreate/meta/* | ||
src/python/turicreate/_cython/* | ||
src/python/turicreate/_deps/*_mock.py | ||
src/python/turicreate/_connect/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# https://coverage.readthedocs.io/en/latest/config.html | ||
|
||
[run] | ||
source = {{ source }} | ||
branch = True | ||
parallel = True | ||
|
||
[report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Don't complain about missing debug-only code: | ||
def __repr__ | ||
if self\.debug | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if False: | ||
if __name__ == .__main__.: | ||
|
||
ignore_errors = True | ||
|
||
omit = | ||
*/__init__.py | ||
{{ source }}/test/* | ||
{{ source }}/meta/* | ||
{{ source }}/_cython/* | ||
{{ source }}/_deps/*_mock.py | ||
{{ source }}/_connect/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters