sh33dafi / Jest Sonar
Licence: mit
A jest reporter that generates sonar reports
Stars: ✭ 23
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Jest Sonar
Serverless Typescript Starter
🗄🙅♀️ Deploy your next serverless JavaScript function in seconds
Stars: ✭ 653 (+2739.13%)
Mutual labels: jest
Jest Codemods
Codemods for migrating to Jest https://github.com/facebook/jest 👾
Stars: ✭ 731 (+3078.26%)
Mutual labels: jest
Node Express Boilerplate
A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose
Stars: ✭ 890 (+3769.57%)
Mutual labels: jest
Snapchat Clone
👻 A SnapChat clone built with React, Redux and Typescript. Styled with SASS. Tested with Cypress, Jest and Enzyme. Linted with Eslint and formatted with Prettier!
Stars: ✭ 770 (+3247.83%)
Mutual labels: jest
Jest In Case
Jest utility for creating variations of the same test
Stars: ✭ 902 (+3821.74%)
Mutual labels: jest
Vue Koa Demo
🔰A simple full stack demo(CSR & SSR & Docker Support) written by Vue2 & Koa2(Koa1 verson also completed)
Stars: ✭ 730 (+3073.91%)
Mutual labels: jest
Vue Testing Handbook
A guide on testing Vue components and applications
Stars: ✭ 669 (+2808.7%)
Mutual labels: jest
Serverless Nodejs Starter
A Node.js starter for Serverless Framework with ES6 and TypeScript support
Stars: ✭ 683 (+2869.57%)
Mutual labels: jest
React Redux Boilerplate
A minimal React-Redux boilerplate with all the best practices
Stars: ✭ 799 (+3373.91%)
Mutual labels: jest
Istanbuljs
monorepo containing the various nuts and bolts that facilitate istanbul.js test instrumentation
Stars: ✭ 656 (+2752.17%)
Mutual labels: jest
Casbin Example
A Demo App of Attribute-based Access Control in Node.js Based on Casbin.
Stars: ✭ 19 (-17.39%)
Mutual labels: jest
Wemake Vue Template
Bleeding edge vue template focused on code quality and developer happiness.
Stars: ✭ 645 (+2704.35%)
Mutual labels: jest
React Carousel
A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)
Stars: ✭ 764 (+3221.74%)
Mutual labels: jest
Webdriverio Jest
Example of a WebdriverIO test written with the Jest framework
Stars: ✭ 19 (-17.39%)
Mutual labels: jest
Vuejs Training
VueJS training including Vue ecosystem: HTTP (Axios), Vuex, Unit Testting (Jest)...
Stars: ✭ 6 (-73.91%)
Mutual labels: jest
jest-sonar
jest-sonar is a custom test reporter for Jest. It converts the generated report into Sonar's Generic Execution format.
Installation
Using yarn:
$ yarn install -D jest-sonar
Using npm:
$ npm i -D jest-sonar
Configuration
Configure Jest in your jest.config
file and add jest-sonar
to the list of reporters.
module.exports = {
...
reporters: ['default', 'jest-sonar'],
...
}
Customize the reporter
The following options can be set to customize the reporter:
Option | Description | Default | Accepted values |
---|---|---|---|
outputDirectory | The directory to which the report should be written | The projects root dir | string |
outputName | The name of the report | sonar-report.xml | string |
reportedFilePath | Should the path be relative or absolute | 'relative' | 'relative' or 'absolute' |
relativeRootDir | The root directory for the relative path | jest rootDir
|
string |
You can set these options when defining the reporter in jest.config
:
module.exports = {
...
reporters: ['default', ['jest-sonar', {
outputDirectory: 'my/custom/directory',
outputName: 'my-new-report-name.xml',
reportedFilePath: 'absolute'
}]],
...
}
Contribution
Contribution guidelines for this project
Contributions to this project are welcome, either by submitting bug reports, submitting feature requests or submitting pull requests.
Creating a pull request
- Fork the repo on GitHub
- Clone and make changes on your machine
- Commit and Push the changes to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest change from "upstream" before making a pull request!
Licence
This project uses the MIT license.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].