sonarqube-issue-conversion is a GitHub Action that can convert the output of several tools into issues that can be ingested into SonarQube.
The currently supported conversions are:
- gtest-to-generic-execution: converts GoogleTest output to Generic Execution
This repository is under active development; see pulse for more details.
To use this conversion in your workflow, add the following steps. Adapting to your build system where necessary. Please note that GoogleTest needs to be instructed to write XML output files:
jobs:
transform-issues:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout
- uses: lukka/run-cmake
with:
workflowPreset: "configure-build-test"
env:
GTEST_OUTPUT: "xml:${{ github.workspace }}/testresults/"
- uses: philips-software/sonarqube-issue-conversion
with:
input: ${{ github.workspace }}/testresults/*.xml
output: gtest-generic-execution.xml
transformation: 'gtest-to-generic-execution'
You can now import this information using sonar.testExecutionReportPaths
in your sonar-project.config.
This project uses a code of conduct to define expected conduct in our community. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the repository administrators by using the Report content functionality of GitHub.
See the changelog for more info on what's been changed.
This project uses Semantic Versioning 2.0.0 and Conventional Commits 1.0.0 please see the contributing guideline for more information.
If you find a vulnerability, please report it to us! See security for more information.
See license.