Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

178
Vistas
Sonarqube test execution metric not working?

I recently decided, based on this article, that instead of creating unit tests and using Sonarqube's test coverage, I will, at least for now, worry only with E2E tests. That being said, I do not want to report coverage, but I do want to report the success or failure of my test suites, to that if a test fails, my quality gates fails. I have the following configured in my sonarqube-scanner.js:

'sonar.testExecutionReportPaths': 'test-results.xml'

And this is the output of my custom Playwright reporter:

<testExecutions version="1">
    <file path="tests/pages/test.spec.ts">
        <testCase name="Should load the page filtered by default with todays date" duration="32323">
            <failure message="short">sample failure text</failure>
        </testCase>
    </file>
</testExecutions>

I expected my dashboard to be failed due to a test suite failure, but it's passed. I think I have something misconfigured. Is there a way to configure sonarqube in a way that the above report would fail the quality gate?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda