Unable to see unit test failure message on SonarQube


(Shelly Han) #1

Hi there,

scanner: 2.6.2
server: 6.7.1

I got the unit test execution report (.xml) parsed by sonar runner, specified in sonar.testExecutionReportPaths. And the number of test cases (both pass and fail) are showing correctly on the server. However, I’m cannot find any failure message displaying there. I’ve attached screenshot. And there’s what I have in the report:

<testExecutions version="1">
  <file path="tests/utils.test.js">
    <testCase name="this should return 1" duration="7">
      <failure message="short">fails</failure>

Please help!