diff --git a/.gitignore b/.gitignore index a7fc944..2d96195 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,7 @@ htmlcov/ .cache nosetests.xml coverage.xml +junit.xml *.cover *.py,cover .hypothesis/ diff --git a/tox.ini b/tox.ini index ece079b..1a1d830 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,8 @@ isolated_build = True [testenv] extras = dev # Install development dependencies from pyproject.toml +deps = + coverage allowlist_externals = curl bash @@ -18,5 +20,6 @@ commands_pre = rm get_helm.sh; \ fi' commands = - # Run all tests with coverage and generate XML report - pytest -v --cov=helm_values_manager --cov-report=xml tests/ + # Run tests with coverage and generate both XML and JUnit reports + coverage run -m pytest -rap --junitxml=junit.xml tests/ + coverage xml -i