How to get tests coverage using Django, Jenkins and Sonar?
On Jenkins I found that coverage.xml has paths that are relative to the directory in which manage.py jenkins is run.
In my case I need to run unit tests on a different machine than Jenkins. To allow Sonar to use the generated coverage.xml, it was necessary for me to run the tests from a folder in the same spot relative to the project as the workspace directory on Jenkins.

Say I have the following on Jenkins
/local/jenkins/tmp/workspace/my_build
   + my_project
       + app1
       + app2
Say on test machine I have the following
/local/test
   + my_project
      + app1
      + app2

I run unit tests from /local/test on the test machine. Then coverage.xml has the correct relative paths, which look like my_project/app1/source1.py or my_project/app2/source2.py
I'm trying to get test unit coverage with Sonar. To do so, I have followed these steps :

Generating report with python manage.py jenkins --coverage-html-report=report_coverage
Setting properties in /sonar/sonar-3.5.1/conf/sonar.properties:

sonar.dynamicAnalysis=reuseReports
sonar.cobertura.reportPath=/var/lib/jenkins/workspace/origami/DEV/SRC/origami/reports/coverage.xml
When I launch the tests, the reports are generated in the right place. However, no unit tests are detected by Sonar.
Am I missing a step or is everything just wrong?