Skip to content

Commit 1e5adbb

Browse files
Merge pull request #164 from splitio/feature/add_coverage
autogenerate coverage report when running unit tests
2 parents a3ea2d1 + aabb318 commit 1e5adbb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test=pytest
1313

1414
[tool:pytest]
1515
ignore_glob=./splitio/_OLD/*
16-
addopts = --cov=splitio --verbose
16+
addopts = --verbose --cov=splitio --cov-report xml
1717
python_classes=*Tests
1818

1919
[build_sphinx]

sonar-scanner.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ sonar_scanner() {
1010
-Dsonar.sources='splitio' \
1111
-Dsonar.projectName='python-client' \
1212
-Dsonar.projectKey='python-client' \
13+
_Dsonar.python.coverage.reportPaths='coverage.xml' \
1314
-Dsonar.links.ci='https://travis-ci.com/splitio/python-client' \
1415
-Dsonar.links.scm='https://github.com/splitio/python-client' \
1516
${params}

0 commit comments

Comments
 (0)