Skip to content

Commit 1dea56f

Browse files
authored
Merge pull request #7 from Zipstack/fix/sonar_coverage
Using different coverage approach
2 parents 3c6eaa5 + 86ff700 commit 1dea56f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ htmlcov/
4545
.cache
4646
nosetests.xml
4747
coverage.xml
48+
junit.xml
4849
*.cover
4950
*.py,cover
5051
.hypothesis/

tox.ini

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ isolated_build = True
44

55
[testenv]
66
extras = dev # Install development dependencies from pyproject.toml
7+
deps =
8+
coverage
79
allowlist_externals =
810
curl
911
bash
@@ -18,5 +20,6 @@ commands_pre =
1820
rm get_helm.sh; \
1921
fi'
2022
commands =
21-
# Run all tests with coverage and generate XML report
22-
pytest -v --cov=helm_values_manager --cov-report=xml tests/
23+
# Run tests with coverage and generate both XML and JUnit reports
24+
coverage run -m pytest -rap --junitxml=junit.xml tests/
25+
coverage xml -i

0 commit comments

Comments
 (0)