From: Tomas Krizek Date: Fri, 21 Jan 2022 18:08:29 +0000 (+0100) Subject: ci/manager: use junit test report X-Git-Tag: v6.0.0a1~47^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=171acefbd2226a5f9fdf3616e508098cbc0011c4;p=thirdparty%2Fknot-resolver.git ci/manager: use junit test report --- diff --git a/manager/.gitignore b/manager/.gitignore index d7d79f26c..189d951a8 100644 --- a/manager/.gitignore +++ b/manager/.gitignore @@ -11,4 +11,5 @@ dist/ .vscode/ /pkg .podman-cache/ -docs/_build/* \ No newline at end of file +docs/_build/* +*junit.xml diff --git a/manager/.gitlab-ci.yml b/manager/.gitlab-ci.yml index f8b2d0f0d..649cf7473 100644 --- a/manager/.gitlab-ci.yml +++ b/manager/.gitlab-ci.yml @@ -29,6 +29,9 @@ lint:py3.10: artifacts: reports: cobertura: coverage.xml + junit: manager/unit.junit.xml + paths: + - manager/unit.junit.xml unit:py3.6: <<: *unit diff --git a/manager/pyproject.toml b/manager/pyproject.toml index 10ce316b6..329845321 100644 --- a/manager/pyproject.toml +++ b/manager/pyproject.toml @@ -47,7 +47,7 @@ poetry = "^1.1.12" run = { cmd = "scripts/run", help = "Run the manager" } run-debug = { cmd = "scripts/run-debug", help = "Run the manager under debugger" } docs = { cmd = "scripts/docs", help = "Create HTML documentation" } -test = { shell = "env PYTHONPATH=. pytest --cov=knot_resolver_manager --show-capture=all tests/unit/", help = "Run tests" } +test = { shell = "env PYTHONPATH=. pytest --junitxml=unit.junit.xml --cov=knot_resolver_manager --show-capture=all tests/unit/", help = "Run tests" } check = { cmd = "scripts/codecheck", help = "Run static code analysis" } format = { shell = "black knot_resolver_manager/ tests/ scripts/; isort .", help = "Run code formatter" } fixdeps = { shell = "poetry install; npm install; npm update", help = "Install/update dependencies according to configuration files"}