{"repo":"jest-community/jest-junit","free":true,"listed":false,"github":"https://github.com/jest-community/jest-junit","clone":"git clone https://github.com/jest-community/jest-junit.git","description":"A Jest reporter that creates compatible junit xml files","language":"JavaScript","stars":502,"topics":["jest","junit","javascript","nodejs","jest-junit","jest-testresultsprocessor"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"jest-junit A Jest reporter that creates compatible junit xml files Note: as of jest-junit 11.0.0 NodeJS = 10.12.0 is required. Installation Usage In your jest config add the following entry: Then simply run: For your Continuous Integration you can simply do: Usage as testResultsProcessor (deprecated) The support for testResultsProcessor is only kept for [legacy reasons][test-results-processor] and might be removed in the future. You should therefore prefer to configure jest-junit as a reporter . Should you still want to, add the following entry to your jest config: Then simply run: For your Continuous Integration you can simply do: Configuration jest-junit offers several configurations based on environment variables or a jest-junit key defined in package.json or a reporter option. Environment variable and package.json configuration should be strings . Reporter options should also be strings exception for suiteNameTemplate, classNameTemplate, titleNameTemplate that can also accept a function returning a string. Environment Variable Name Reporter Config Name Description Default Possible Injection Values --- --- --- --- --- JEST SUITE NAME suiteName name attribute of \"jest tests\" N/A JEST JUNIT OUTPUT DIR outputDirectory Directory to save the output. Relative path outside of project root (e.g. in monorepos) has to be prefixed with literal, e.g. /../coverage process.cwd() N/A JEST JUNIT OUTPUT NAME outputName File name for the output. \"junit.xml\" N/A JEST JUNIT OUTPUT FILE output","default_branch":null,"files":null,"tree":[],"storefront":"/r/jest-community","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jest-community/jest-junit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}