mocha-reporter-sonarqube

Mocha reported for SonarQube

Usage no npm install needed!

<script type="module">
  import mochaReporterSonarqube from 'https://cdn.skypack.dev/mocha-reporter-sonarqube';
</script>

README

mocha-reporter-sonarqube

Mocha reporter for SonarQube / SonarCloud

See https://docs.sonarqube.org/latest/analysis/generic-test/#header-2 for details.

Installation

npm i -D mocha-reporter-sonarqube

Usage

mocha -R mocha-reporter-sonarqube -O filename=report.xml

if filename option is not specified, the report will be written to process.stdout.