add test infrastructure
This commit is contained in:
parent
a9d60654f5
commit
2a2deffd0b
54
.coveragerc
Normal file
54
.coveragerc
Normal file
@ -0,0 +1,54 @@
|
||||
# .coveragerc to control coverage.py
|
||||
[run]
|
||||
branch = True
|
||||
omit =
|
||||
*/site-packages/*
|
||||
*/distutils/*
|
||||
*/test/*
|
||||
*/__init__.py
|
||||
*/setup.py
|
||||
*/venv/*
|
||||
*/env/*
|
||||
*/build_venv/*
|
||||
*/build_env/*
|
||||
source =
|
||||
image_prediction
|
||||
src
|
||||
relative_files = True
|
||||
data_file = .coverage
|
||||
|
||||
[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 __name__ == .__main__.:
|
||||
omit =
|
||||
*/site-packages/*
|
||||
*/distutils/*
|
||||
*/test/*
|
||||
*/__init__.py
|
||||
*/setup.py
|
||||
*/venv/*
|
||||
*/env/*
|
||||
*/build_venv/*
|
||||
*/build_env/*
|
||||
|
||||
ignore_errors = True
|
||||
|
||||
[html]
|
||||
directory = reports
|
||||
|
||||
[xml]
|
||||
output = reports/coverage.xml
|
||||
2
pytest.ini
Normal file
2
pytest.ini
Normal file
@ -0,0 +1,2 @@
|
||||
[pytest]
|
||||
norecursedirs = incl
|
||||
@ -19,3 +19,5 @@ PDFNetPython3~=9.1.0
|
||||
Pillow~=8.3.2
|
||||
PyYAML~=5.4.1
|
||||
scikit_learn~=0.24.2
|
||||
|
||||
pytest~=7.1.0
|
||||
0
test/__init__.py
Normal file
0
test/__init__.py
Normal file
Loading…
x
Reference in New Issue
Block a user