SonarQube not reading test files and showing 0% coverage on PR

Must-share information (formatted with Markdown):

  • I am using SonarQube 9.0.1.46107
  • The SonarQube is working for PR decoration but is not reading the test files and shows 0% coverage on the PR decoration.
    My company uses mocha for unit tests and nyc for coverage.
    How do I import nyc test coverage (Typescript) to SonarQube?

Hi,

According to the docs nyc isn’t a supported option. Perhaps you can convert your nyc reports to the Generic Test Data format?

 
HTH,
Ann

Does it support istanbul?
What if I convert nyc reporter to lcov file?
Is there any open source package that can convert the tests to generic test data format?