-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding testing and coverage functionality
- Loading branch information
1 parent
36344fe
commit e8329e8
Showing
4 changed files
with
53 additions
and
44 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,11 @@ | ||
comment: off | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
threshold: 0.2% | ||
|
||
codecov: | ||
require_ci_to_pass: false | ||
notify: | ||
wait_for_ci: true |
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,34 @@ | ||
[tool.coverage.run] | ||
omit = [ | ||
"{{ cookiecutter.module_name }}/_{{ cookiecutter._parent_project }}_init*", | ||
"{{ cookiecutter.module_name }}/conftest.py", | ||
"{{ cookiecutter.module_name }}/*setup_package*", | ||
"{{ cookiecutter.module_name }}/tests/*", | ||
"{{ cookiecutter.module_name }}/*/tests/*", | ||
"{{ cookiecutter.module_name }}/extern/*", | ||
"{{ cookiecutter.module_name }}/version*", | ||
"*/{{ cookiecutter.module_name }}/_{{ cookiecutter._parent_project }}_init*", | ||
"*/{{ cookiecutter.module_name }}/conftest.py", | ||
"*/{{ cookiecutter.module_name }}/*setup_package*", | ||
"*/{{ cookiecutter.module_name }}/tests/*", | ||
"*/{{ cookiecutter.module_name }}/*/tests/*", | ||
"*/{{ cookiecutter.module_name }}/extern/*", | ||
"*/{{ cookiecutter.module_name }}/version*", | ||
] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
# Have to re-enable the standard pragma | ||
"pragma: no cover", | ||
# Don't complain about packages we have installed | ||
"except ImportError", | ||
# Don't complain if tests don't hit assertions | ||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
# Don't complain about script hooks | ||
"def main(.*):", | ||
# Ignore branches that don't pertain to this version of Python | ||
"pragma: py{ignore_python_version}", | ||
# Don't complain about IPython completion helper | ||
"def _ipython_key_completions_" | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[tool.pytest.ini_options] | ||
testpaths = [ | ||
"{{ cookiecutter.module_name }}", | ||
"docs", | ||
] | ||
doctest_plus = "enabled" | ||
text_file_format = "rst" | ||
addopts = "--doctest-rst" |