Azure build pipeline generating junit xml files and lcov file, but sonarqube dashboard not showing unit test count.
and i can able to publish test results to Azure pipelines. attaching test results from azure pipeline.
could you please help me on this. attaching details please find it below.
Sonarqube version: 9.9 version
project : angular/node.js
karma.config.js file
const process = require('process');
process.env.CHROME_BIN = require('puppeteer').executablePath()
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-junit-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage'),
subdir: 'report',
reporters: [
{ type: 'lcov' },
{ type: 'html' },
{ type: 'text-summary' },
{ type: 'cobertura' }
],
},
reporters: ['progress', 'kjhtml', 'junit'],
junitReporter: {
outputDir: './coverage/junit',
outputFile: 'custom-report.xml'
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeHeadless'],
singleRun: true,
restartOnFileChange: true
});
};