{"library":"node-reporter-sonarqube","title":"SonarQube Test Reporter for Node.js Test Runner","description":"The `node-reporter-sonarqube` package provides a specialized test reporter designed for the native Node.js Test Runner, enabling seamless integration with SonarQube and SonarCloud platforms. It processes the output from Node's built-in test runner and generates a standard 'Generic Test Data' XML report (typically `test-report.xml`), which can then be consumed by SonarQube/SonarCloud for code quality analysis and metric tracking. Currently stable at version `1.0.3`, the project maintains a focused release cadence, primarily issuing updates for dependency management and minor fixes, rather than frequent new features. Its key differentiator is its direct compatibility with `node --test` command-line arguments, making it a straightforward solution for JavaScript and TypeScript projects that utilize the native Node.js testing framework and require SonarQube/SonarCloud integration for test execution reporting.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install node-reporter-sonarqube"],"cli":null},"imports":["This package is not imported into JavaScript/TypeScript code. It is used exclusively via Node.js CLI arguments.","Utilize `node --test --test-reporter=node-reporter-sonarqube` directly from your shell or npm script.","Ensure `node-reporter-sonarqube` is installed as a `devDependency` and configured via `package.json` scripts or direct CLI calls."],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install --save-dev node-reporter-sonarqube\n\n# Configure your package.json scripts for convenience\n# For example, in your package.json:\n// \"scripts\": {\n//   \"test:sonarqube\": \"node --test --test-reporter=node-reporter-sonarqube --test-reporter-destination=test-report.xml\"\n// }\n\n# Run your Node.js tests and generate the SonarQube report\nnode --test --test-reporter=spec --test-reporter-destination=stdout \\\n  --test-reporter=node-reporter-sonarqube --test-reporter-destination=test-report.xml\n\n# This will output standard test results to stdout and a SonarQube-compatible XML to test-report.xml\n# You would then typically upload test-report.xml during a SonarQube/SonarCloud scan.","lang":"bash","description":"Demonstrates installation and basic command-line usage to generate a SonarQube compatible test report using the Node.js Test Runner.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}