@casualbot/jest-sonar-reporter
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -35,4 +35,4 @@ /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ | ||
relativePaths: true, | ||
outputName: 'sonar-report.xml', | ||
outputPath: 'coverage', | ||
outputName: 'jest-sonar.xml', | ||
outputDirectory: 'coverage/', | ||
} | ||
@@ -39,0 +39,0 @@ ] |
{ | ||
"name": "@casualbot/jest-sonar-reporter", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A Sonar test reporter for Jest.", | ||
@@ -19,3 +19,3 @@ "keywords": [ | ||
"lint": "eslint . -c .eslintrc.js --quiet", | ||
"lint:coverage": "eslint . -c .eslintrc.js -f json -o ./coverage/eslint.json" | ||
"lint:coverage": "eslint . -c .eslintrc.js -f json-relative -o ./coverage/eslint.json" | ||
}, | ||
@@ -53,2 +53,3 @@ "repository": { | ||
"eslint-config-prettier": "8.3.0", | ||
"eslint-formatter-json-relative": "^0.1.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
@@ -66,5 +67,5 @@ "eslint-plugin-jest": "^25.3.0", | ||
"mkdirp": "1.0.4", | ||
"xml": "1.0.1", | ||
"uuid": "8.3.2" | ||
"uuid": "8.3.2", | ||
"xml": "1.0.1" | ||
} | ||
} |
# Jest Sonar Reporter | ||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=CasualBot_jest-sonar-reporter&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=CasualBot_jest-sonar-reporter) | ||
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=CasualBot_jest-sonar-reporter&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=CasualBot_jest-sonar-reporter) | ||
[![Build](https://github.com/CasualBot/jest-sonar-reporter/actions/workflows/test-and-scan.yml/badge.svg)](https://github.com/CasualBot/jest-sonar-reporter/actions/workflows/test-and-scan.yml) | ||
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=CasualBot_jest-sonar-reporter&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=CasualBot_jest-sonar-reporter) | ||
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=CasualBot_jest-sonar-reporter&metric=coverage)](https://sonarcloud.io/summary/new_code?id=CasualBot_jest-sonar-reporter) | ||
[![wakatime](https://wakatime.com/badge/user/41388cf5-199b-46ef-ba4b-9d69e0dda390/project/1dc2b734-653c-4cd9-a5e1-1c2df44d609f.svg)](https://wakatime.com/badge/user/41388cf5-199b-46ef-ba4b-9d69e0dda390/project/1dc2b734-653c-4cd9-a5e1-1c2df44d609f) | ||
> :warning: **This is currently in development and highly unstable. Use are your own discretion.** | ||
`@casualbot/jest-sonar-scanner` is a custom results processor for Jest derived from Christian W. original work [here](https://github.com/3dmind/jest-sonar-reporter). | ||
The processor converts Jest's output in to Sonarqube's [generic data format] to be used by `sonar.testExecutionReportPaths` configuration | ||
It has been updated to be usable as a reporter in the `jest.config`, as well as, provide the ability to output relative paths for the generated XML file. | ||
>I am working towards bringing the original package back to life / providing updates as I require it for every day work and have uses cases I would like to inquire. | ||
## Installation | ||
@@ -17,0 +12,0 @@ |
198578
27
101
141