{"id":20163402,"url":"https://github.com/sjinks/node-reporter-sonarqube","last_synced_at":"2025-10-18T05:21:39.931Z","repository":{"id":255437874,"uuid":"850549311","full_name":"sjinks/node-reporter-sonarqube","owner":"sjinks","description":"Node.js test reporter for SonarQube / SonarCloud","archived":false,"fork":false,"pushed_at":"2025-03-03T06:38:26.000Z","size":502,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T05:02:22.409Z","etag":null,"topics":["node","node-test-reporter","nodejs","sonarqube","sonarqube-reports","test-reporter"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/node-reporter-sonarqube","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjinks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"]}},"created_at":"2024-09-01T05:09:05.000Z","updated_at":"2025-03-03T06:38:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"00e666cb-1206-4321-b293-e2afb366d94e","html_url":"https://github.com/sjinks/node-reporter-sonarqube","commit_stats":null,"previous_names":["sjinks/node-reporter-sonarqube"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-reporter-sonarqube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-reporter-sonarqube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-reporter-sonarqube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-reporter-sonarqube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjinks","download_url":"https://codeload.github.com/sjinks/node-reporter-sonarqube/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137998,"owners_count":21053774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["node","node-test-reporter","nodejs","sonarqube","sonarqube-reports","test-reporter"],"created_at":"2024-11-14T00:29:29.680Z","updated_at":"2025-10-18T05:21:39.835Z","avatar_url":"https://github.com/sjinks.png","language":"TypeScript","funding_links":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"],"categories":[],"sub_categories":[],"readme":"# node-reporter-sonarqube\n\n[![Build and Test](https://github.com/sjinks/node-reporter-sonarqube/actions/workflows/build.yml/badge.svg)](https://github.com/sjinks/node-reporter-sonarqube/actions/workflows/build.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sjinks_node-reporter-sonarqube\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=sjinks_node-reporter-sonarqube)\n\nA [SonarQube](https://www.sonarsource.com/products/sonarqube/)/[SonarCloud](https://www.sonarsource.com/products/sonarcloud/) [test reporter](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/test-coverage/generic-test-data/#generic-test-execution) for the Node.js [Test Runner](https://nodejs.org/api/test.html).\n\n## Installation\n\n```bash\nnpm i -D node-reporter-sonarqube\n```\n\n## Usage\n\n```bash\nnode --test --test-reporter=node-reporter-sonarqube --test-reporter-destination=test-report.xml\n```\n\nMultiple reporters:\n\n```bash\nnode --test --test-reporter=spec --test-reporter-destination=stdout --test-reporter=node-reporter-sonarqube --test-reporter-destination=test-report.xml\n```\n\nGitHub Actions:\n\n```yaml\n# ...\n    steps:\n      - name: Check out the code\n        uses: actions/checkout@v4\n\n      - name: Set up Node.js environment\n        uses: actions/setup-node@v4\n        with:\n          node-version: lts/*\n          cache: npm\n\n      - name: Install dependencies\n        run: npm ci --ignore-scripts\n        env:\n          NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: Run postinstall scripts\n        run: npm rebuild \u0026\u0026 npm run prepare --if-present\n\n      - name: Run tests\n        run: node --test --test-reporter=spec --test-reporter-destination=stdout --test-reporter=node-reporter-sonarqube --test-reporter-destination=test-report.xml\n        continue-on-error: true\n\n      - name: SonarCloud Scan\n        uses: SonarSource/sonarcloud-github-action@v3\n        env:\n          GITHUB_TOKEN: ${{ github.token }}\n          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}\n        with:\n          args: \u003e\n            -Dsonar.testExecutionReportPaths=test-report.xml\n```\n\n[Workflow used by this repository](.github/workflows/sonarscan.yml)\n\nSee [Test reporters](https://nodejs.org/api/test.html#test-reporters) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Fnode-reporter-sonarqube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjinks%2Fnode-reporter-sonarqube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Fnode-reporter-sonarqube/lists"}