Skip to content Skip to sidebar Skip to footer

Importing Python Test Run Information Into Sonarqube

I have a python project with structure like this and I'm trying to import it into SonarQube: root sonar-project.properties src test nosetests.xml All test file

Solution 1:

This seems best addressed at the nosetest level i.e. getting nosetests.xml to report the fully qualified path. That will let SonarPython (and potentially other tools) do the matching properly.

Simple approach to that: add an empty __init__.py under test and rerun your tests. That'll make test part of the classpath, and nosetests.xml should report on test.unitests.testcase .

Post a Comment for "Importing Python Test Run Information Into Sonarqube"