This is an enhancement request triggered by an email sent to email@example.com titled "No duplications for tests?". Here is the content of that email:
When I run sonar-runner and review the results I see duplication for files that are only in the source folder, but not in the test folder. I know there are some small duplicate blocks of code in my tests, but they are not listed when I drill in to the duplicates from the Sonar Dashboard. My test files are included in the analysis, and I can confirm this when I search for the class names in the Sonar Dashboard. Here is my configuration for the folders in sonar-project.properties:
If I change my configuration to make the test folder my source folder, and remove the 'tests' setting, then I see the duplicate code for the tests in the dashboard:
It would be useful to use the first configuration and have the duplication results include the test code. This way I do not have to configure a separate sonar-project.properties for the app and acceptance-tests folders, then amalgamate the results.