diff --git a/.coveragerc b/.coveragerc index 6449c64..04a2664 100644 --- a/.coveragerc +++ b/.coveragerc @@ -7,6 +7,6 @@ omit = [report] exclude_lines = - :nocov: + :nocov: partial_branches = :nobr: diff --git a/.gitignore b/.gitignore index 5a0095c..6e98694 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ __pycache__/ # coverage /.coverage /htmlcov +/coverage.xml # tests /tests/spec_*/ diff --git a/pyproject.toml b/pyproject.toml index 599740f..2f861e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,7 +83,7 @@ examples = [ [tool.pdm.scripts] _.env_file = ".env.toolchain" -test.composite = ["test-code", "test-docs"] +test.composite = ["test-code", "test-docs", "coverage-xml"] test-code.env = {PYTHONWARNINGS = "error"} test-code.cmd = "python -m coverage run -m unittest discover -t . -s tests -v" test-docs.cmd = "sphinx-build -b doctest docs/ docs/_build" @@ -94,3 +94,4 @@ document-linkcheck.cmd = "sphinx-build docs/ docs/_linkcheck/ -b linkcheck" coverage-text.cmd = "python -m coverage report" coverage-html.cmd = "python -m coverage html" +coverage-xml.cmd = "python -m coverage xml"