shieldgen
Update your package readme on every test with build status and code coverage.
(Because paying >1k a month for badges on private projects would be silly)
Installation
Only supported with Jest.
- Install as dev dependency:
npm i -D shieldgen
- Set to run after jest in package.json
"scripts": ,
- Enable code coverage in jest.config.js:
moduleexports = // ... collectCoverage: true coverageReporters: "html";
Configuration
Configuration for badge colors and messages, as well as optional Airtable integration is specified in .shieldgen.config.json. For integration, AIRTABLE_API_KEY must be set as an environment variable.
Here is an example configuration.