Skip to content

SonarQube generic execution reporter #24

@andre2007

Description

@andre2007

SonarQube has a generic test execution report format [1]

<testExecutions version="1">
  <file path="testx/ClassOneTest.xoo">
    <testCase name="test1" duration="5"/>
    <testCase name="test2" duration="500">
      <skipped message="short message">other</skipped>
    </testCase>
    <testCase name="test3" duration="100">
      <failure message="short">stacktrace</failure>
    </testCase>
    <testCase name="test4" duration="500">
      <error message="short">stacktrace</error>
    </testCase>
  </file>
</testExecutions>

If d-unit could also produce a report in this format, the results can directly be imported
into SonarQube.

PS. At the moment SonarQube fails if in attribute "path" a file with extension ".d" is specified.
I opened a ticket on SonarQube, they will fix this issue.

[1] https://docs.sonarqube.org/latest/analysis/generic-test/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions