Hi Ann,
Thanks for this - I got this fixed. (Assuming you're using sonar-scanner 2.5 and sonarqube 5.5)
What I learned:
sonar.sources - this needs to point to the top level directory where your package hierarchy for code starts - for a maven project this is:
src/main/java
sonar.tests - this needs to point to the top level directory where your package hierarchy for test code starts - for a maven project is this is:
src/test/java
sonar.test.exclusions - this needs to be set to blank or no test information will be uploaded - if you want to exclude issues from tests then use sonar.exclusions=...,**/src/test/**/*.java
Set the file upload path with sonar.junit.reportsPath=target/surefire-reports
Once you had sorted out the combination of these five settings - then it worked.
Cheers
Julian