Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Uploading coverage report? #50

Open
tflorac opened this issue Jan 10, 2020 · 2 comments
Open

Uploading coverage report? #50

tflorac opened this issue Jan 10, 2020 · 2 comments

Comments

@tflorac
Copy link

tflorac commented Jan 10, 2020

Hi,
I just tried to use your Docker image to integrate Gitlab and SonarQube.
I have a Gitlab-CI job which is generating a test coverage report in XML format (which is stored as an artefact). How can I upload this report to Sonar?
Best regards,
Thierry

@tflorac
Copy link
Author

tflorac commented Jan 10, 2020

I added "sonar.python.coverage.reportPaths=coverage.xml" to sonar-project.properties.
I can see this in Gitlab-CI job console:

100 INFO: Python test coverage
101 INFO: Parsing report '/builds/G3v_6jyd/0/onf/support/python/pyramid/pyams-v2/pyams-utils/coverage.xml'

But coverage measure is always shown at 0% in SonarQube, while it is displayed normally if I run "sonar-scanner" directly...

@tflorac
Copy link
Author

tflorac commented Jan 10, 2020

I ommitted to say that SONAR_ANALYSIS_MODE is set to "publish" in job configuration...!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant