From 5d993ded3235f5f221f4ae6544634883baa0dac6 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Fri, 5 Nov 2021 01:24:53 +0100 Subject: [PATCH] Make pytest emit XML coverage This patch should make GHA report coverage to codecov properly. --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 9f2f42cb9e..19977a10cc 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ deps = # NOTE: `{envpython} -m pytest` because it'd add CWD into $PYTHONPATH # NOTE: testing the project from the Git checkout # NOTE: rather than one installed. -commands = pytest --cov=proxy tests/ {posargs:} +commands = pytest --cov=proxy --cov-report=xml tests/ {posargs:} [dists]