Problem importing TS UT report

@Andrei_Epure I am also facing exact same issue and project structure is similar to what is given above in this thread. sonar_report.xml file is look like below.

<testExecutions version="1">
  <file path="src/app/app.component.spec.ts">
    <testCase name="AppComponent should create the app" duration="92"/>
  </file>  
</testExecutions>

But actual path on build server is F:\A<agent name>-B01_work\25\s\Modules<Module-Name>\Frontend<Some Tetx><Actor>\src/app/app.component.spec.ts.

How do I set this dynamically generated path to “testpath” of sonarQubeUnitReporter?

Hello @Rahul_Mahulkar

As per our requirements in the FAQ, I moved your post in a separate topic to make sure we can provide a tailored answer.

Do you confirm that you are analyzing a .NET project with the Scanner for .NET?

Could you please tell us the :

  • version of the scanner you are using
  • version of SonarQube

Also, please give us the verbose logs for your solution.

Are you running all commands from the same folder? Could you please share your CI script? What CI are you using?

Also, did you read the [Coverage] Troubleshooting guide for .NET code coverage import ? It is written for the .NET scenario, but you can also find generic information which can apply to your usecase. Please read it.