Mocha reporter for SonarQube
npm install mocha-reporter-sonarqubeMocha reporter for SonarQube / SonarCloud
See https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/test-coverage/generic-test-data/#generic-test-execution for details.
``bash`
npm i -D mocha-reporter-sonarqube
`bash`
mocha -R mocha-reporter-sonarqube -O filename=report.xml
if the filename option is not specified, the report will be written to process.stdout`.