Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeclimate-community/simplecov_json_formatter
JSON formatter for SimpleCov code coverage tool for ruby 2.4+
https://github.com/codeclimate-community/simplecov_json_formatter
code-quality coverage coverage-library coverage-report rails ruby test-coverage
Last synced: 3 months ago
JSON representation
JSON formatter for SimpleCov code coverage tool for ruby 2.4+
- Host: GitHub
- URL: https://github.com/codeclimate-community/simplecov_json_formatter
- Owner: codeclimate-community
- License: mit
- Created: 2020-08-26T20:29:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-15T20:20:09.000Z (10 months ago)
- Last Synced: 2024-10-30T04:28:39.090Z (3 months ago)
- Topics: code-quality, coverage, coverage-library, coverage-report, rails, ruby, test-coverage
- Language: Ruby
- Homepage: https://github.com/fede-moya/simplecov_json_formatter
- Size: 32.2 KB
- Stars: 19
- Watchers: 4
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON formatter for SimpleCov
***Note: To learn more about SimpleCov, check out the main repo at [SimpleCov](https://github.com/simplecov-ruby/simplecov)***
Generates a formatted JSON report of your [SimpleCov](https://github.com/simplecov-ruby/simplecov) ruby code coverage results on ruby 2.4+. Originally intended to add `simplecov`'s results reading capacity to CI tools.
## Overview
You can expect for this gem to produce a `coverage.json` file, located at the `coverage` folder.
Depending on your `SimpleCoV`'s settings you will experiment different outcomes. Particularly depending on which type of coverage are you running `SimpleCov` with:
- If you configure `SimpleCov` to run with `branch` coverage you should expect an output formatted like [sample_with_branch.json](https://github.com/fede-moya/simplecov_json_formatter/blob/master/spec/fixtures/sample_with_branch.json)
- Otherwise you should expect an output formatted like [sample.json](https://github.com/fede-moya/simplecov_json_formatter/blob/master/spec/fixtures/sample.json)## Development
We encourage you to use docker for common operations like running tests, or debugging your code. Running `make sh` will start a new container instance based on the `Dockerfile` provided at root, finally a shell prompt will be displayed on your terminal. Also, syncronization with your local files will be already set.
### Tests
`make test` will trigger the excution of both running tests and running rubocop as linter, by simply running `rake`, this actions will be run inside a new container but using your local files.### Format
`make format` will run `rubocop -a` which stands for _autocorrect_ and format your code according to the `.rubocop.yml` config file.
## Copyright
See [License](https://github.com/codeclimate-community/simplecov_json_formatter/blob/master/LICENSE)