diff --git a/noxfile.py b/noxfile.py index a6c5cc0..9f207ed 100644 --- a/noxfile.py +++ b/noxfile.py @@ -13,10 +13,7 @@ def test(session): session.run_always( "pdm", "sync", "-G", "test", "-G", "pyvista", "--clean", external=True ) - command = ( - "pdm run pytest tests doc/examples --cov --cov-report term --cov-report xml" - ) - session.run(*command.split(), external=True) + session.run("pdm", "run", "cov-xml", external=True) @nox.session diff --git a/pyproject.toml b/pyproject.toml index 4da1b12..92b0ef2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,6 +73,7 @@ doc = [ [tool.pdm.scripts] cov = "pytest tests doc/examples/ --cov --cov-report term --cov-report html" +cov-xml = "pytest tests doc/examples --cov --cov-report term --cov-report xml" black = "black -l 82 src tests doc dev" isort = "isort src tests doc dev" format = {composite = ["black", "isort"]}