Unit test number remains blank

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm
  • what are you trying to achieve
  • what have you tried so far to achieve this

Using SonarQube - 8.9

My code is JavaScript


in karma.js we are using sonarqubeunit reporter

        frameworks: ['jasmine', '@angular-devkit/build-angular'],
        plugins: [
            require('karma-jasmine'),
            require('karma-chrome-launcher'),
            require('karma-jasmine-html-reporter'),
            require('karma-coverage'),
            require('karma-sonarqube-unit-reporter'),
            require('@angular-devkit/build-angular/plugins/karma')
      browsers: ['ChromeHeadlessNoSandbox'],
      coverageReporter: {
          dir: require('path').join(__dirname, './coverage'),
          type: 'lcov', // or 'lcovonly' to generate only lcov.info
          subdir: '.', // save to the root of coverage/ folder
          reporters: [
              {type: 'lcov', subdir: ''},
              {type: 'text-summary'}
          ]
      },
      reporters: ['progress', 'kjhtml', 'sonarqubeUnit'],
      sonarQubeUnitReporter: {
        sonarQubeVersion: "LATEST",
        outputDir: "coverage/",
        outputFile: "test-report.xml",
        useBrowserName: false,  // Optionally disable the browser name in the file name
        overrideTestDescription: true,
        prependTestFileName: "apps/portal"
      },

This generates both files -

imageo

Sonar Properties -

I am passing both files -

But Unit test still remains empty -

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

8.9.* → 9.9.6 → 10.7 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

 
Ann