Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

681
Visualizações
Sonarqube coverage report is missing the number of unit tests

Sonarqube is currently reporting the percent coverage of the project, but not the number of unit tests. I am using jest-sonar-reporter, so a test-report.xml file is being generated after tests run. Looking that the Sonarqube log, it says test execution data is imported for 0 files.

INFO: Parsing /builds/REPONAME/coverage/test-report.xml
INFO: Imported test execution data for 0 files
INFO: Test execution data ignored for 153 unknown files, including:
*file names*

The file paths in my test-report.xml file are:

<file path="/builds/REPONAME/src/accounts/.../utils.test.ts">
<file path="/builds/REPONAME/src/shared/.../utils.test.js">
etc.

package.json file:

  "devDependencies": {
    ...
    "jest-sonar-reporter": "2.0.0",
    ...
  },
  "jestSonar": {
    "reportPath": "coverage",
    "reportFile": "test-report.xml",
    "indent": 4
  },

sonar-project.properties file:

sonar.projectName=REPONAME
sonar.projectVersion=3.46.1
sonar.language=js
sonar.sources=src
sonar.tests=src
sonar.exclusions=node_modules/**,tests/**,.idea/**,.storybook/**,stories/**
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.test.inclusions=**/*.test.*
sonar.coverage.exclusions=node_modules/**,test/**,src/**/*.test.js,src/**/*.test.jsx,server/**/*.test.js,*.config.js,.idea/**,.storybook/**,stories/**,**/__snapshots__/**/*
sonar.eslint.reportPaths=eslint.json
sonar.testExecutionReportPaths=coverage/test-report.xml
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda