How to change coverage report Source File
<p>Here is my project tree :</p>

<pre><code>src
  - main
   - js
     - common
       -utils.js
       -common.js
     - api.js
  - test
    - test.js
- gruntfile.js
- target
  - work
    -coverage-reports
     -lcov.info
</code></pre>

<p>when the coverage report is generated in my lcov.info file I have something like:</p>

<pre><code>SF: src/main/js/common/utils.js
...
...
SF: src/main/js/common/common.js
...
...
</code></pre>

<p>and as sonar properties I have :</p>

<pre><code>-Dsonar.sources=src/main
-Dsonar.test=src/test
</code></pre>

<p>so the SF in lcov.info and sonar.sources propertie is confusing, and sonar can't find the source files</p>

<p><strong>so my question is how to precise the coverage report lcov.info How can I change the SF ??</strong> and make it something like :</p>

<pre><code>    SF: main/js/common/utils.js
    ...
    ...
    SF: main/js/common/common.js
    ...
    ...
</code></pre>