diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..199c083 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +source = zx diff --git a/.gitignore b/.gitignore index fe6ac8a..2c633bc 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ build dist venv +.venv +.coverage diff --git a/pytest.ini b/pytest.ini index 75d12c7..09944f9 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,7 @@ [pytest] +addopts = -s --cov -p no:warnings testpaths = tests + +filterwarnings = + ignore::CoverageWarning diff --git a/setup.cfg b/setup.cfg index b47bc48..a998db6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,5 +32,6 @@ console_scripts = [options.extras_require] dev = pytest + pytest-cov tox mypy