Sonar Runner: - INFO: Failed to resolve file paths

I am trying to start Sonar Runner via CMD Line and want to scan all the data through my Lcov file, but after starting Sonar Runner and showing an error in the read file. I crossed checked every path specified in the file manually, and its work is excellent. But still he gives me an error, as shown below: -

>INFO: Integration Test Coverage Sensor is started
INFO: Overall Coverage Sensor is started
INFO: Analysing [C:\Tests\lcov.dat]
INFO: Could not resolve 67 file paths in [C:\Trunk\lcov.dat], first unr
esolved path: C:\Trunk\Web\App_Themes\Core\AppStart\UserAuth.js"

I tried to run Runner as shown below: -

>1>Go to Root directory of Project and Open CMD.

>2> C:\Sonar\Sonar_Runner\MSBuild.SonarQube.Runner.exe begin /k:"MobileJs" /n:"MobileJs" /v:"1.0" /d:"sonar.javascript.lcov.reportPath"=C:\Trunk\lcov.dat

>3>"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" /t:Rebuild

>4>C:\Sonar\Sonar_Runner\MSBuild.SonarQube.Runner.exe end

I followed every process listed in the link below, but no luck here. This again and again gives me the same error in the last step only when analyzing coverage.

Note. - LCOV file contains java script coverage report

+4
source share

Source: https://habr.com/ru/post/1656700/


All Articles