Sha256: 06af0c48363bcae9b976ae399fdb81988c660d639d1c90c3243bfa0d8c728c9b
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
[![EdgePetrol](https://circleci.com/gh/EdgePetrol/simplecov-shield-json.svg?style=shield)](https://app.circleci.com/pipelines/github/EdgePetrol/simplecov-shield-json) ![EdgePetrol](https://img.shields.io/endpoint?url=https://edgepetrol.github.io/coverage/simplecov-shield-json/master/shield-coverage.json) # simplecov-shield-json Shield JSON formatter for the ruby 1.9+ code coverage gem SimpleCov ## Usage 1. Add simplecov-shield-json to your `Gemfile` and `bundle install`: gem 'simplecov-shield-json', require: false 2. Require simplecov-shield-json and set it up as SimpleCov's formatter: require 'simplecov-shield-json' SimpleCov.formatter = SimpleCov::Formatter::ShieldJSONFormatter ## Result Generated JSON can be found in coverage/shield-coverage.json The format you can expect is: ``` { "schemaVersion": 1, "label": "Coverage", "message": "99.9%", "color": "green", "cacheSeconds": 1800 } ``` ## Making Contributions If you want to contribute, please: * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Send me a pull request on Github. * Check that travis build passes for your pull request. ## Copyright Copyright (c) 2020 Vicent Llongo. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simplecov-shield-json-0.0.4 | README.md |