I am using sonarqube version 8.9 and I am trying to populate unit test result into my sonarqube analysis. I have xml report from unit test but can’t find the way to convert unit test xml data into generic format of sonarqube. can anyone please help.
The utPLSQL already generates the unit test / coverage report in the format required by SonarQube with the ut_sonar_test_reporter / ut_coverage_sonar_reporterreporters.
utplsql run <db info and other test arguments> -f=ut_sonar_test_reporter -o=tests.xml -f=ut_coverage_sonar_reporter -o=coverage.xml -source_path=<source dir> -test_path=<test dir>
Be warned that getting it right is a bit… complicated.
I’ve just checked the Guides category & we don’t seem to have anything on this.
I can copy/paste what you’ve provided into a new guide, but that’s all I’d be doing. If you wanted to write this up, I’d be thrilled to move it into the Guides category…