Javascript code coverage issues while parsing lcov.info file

Hey we are facing an issue while running java script code coverage in sonarqube via bamboo. Lcov.info file is created via karma/istanbul

  • versions used -
    SonarQube : 7.9.3
    SonarScanner 4.4.0.2170)
  • error observed
    ‘’‘WARN: Could not resolve xxx file paths in [/xxx/coverage/report-lcov/lcov.info], first unresolved path: ./node_modules/xxx/filename.js ‘’’

Could please suggest a way to resolve this issue?

Hi,

Welcome to the community!

The first question would be: does ./node_modules/xxx/filename.js exist in your project? And if so, what is the path from project root (where you kicked off analysis) to that file?

 
Ann