I have create the unit tests for my python app using unittest
and I use coverage run
and coverage report
(or coverage xml
) to create the reports.
But I have to fed the reports into SonarQube. The problem is that I have also to fill the parameter sonar.python.xunit.reportPath
(which seems to be the test execution report). Is there a way to fill this parameter using coverage.py
and unittest
?
Hi,
Welcome to the community!
Is your goal to get your coverage into your analysis? If so, you’ll use sonar.python.coverage.reportPaths
. If you really want test execution data included as well, you’ll need to generate an XUnit report.
HTH,
Ann