Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fastlane-community/danger-xcov
Danger plugin to validate the code coverage of the files changed in a pull request
https://github.com/fastlane-community/danger-xcov
Last synced: 4 months ago
JSON representation
Danger plugin to validate the code coverage of the files changed in a pull request
- Host: GitHub
- URL: https://github.com/fastlane-community/danger-xcov
- Owner: fastlane-community
- License: mit
- Created: 2016-06-05T10:27:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T10:07:08.000Z (over 1 year ago)
- Last Synced: 2024-02-29T04:12:49.002Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 287 KB
- Stars: 106
- Watchers: 3
- Forks: 24
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Lists
- awesome-danger - danger-xcov - Danger plugin to validate the code coverage of the files changed in a pull request. (Plugins / Ruby (danger))
- awesome-stars - fastlane-community/danger-xcov - Danger plugin to validate the code coverage of the files changed in a pull request (Ruby)
README
-------
[![Twitter: @nakiostudio](https://img.shields.io/badge/[email protected]?style=flat)](https://twitter.com/nakiostudio)
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/nakiostudio/xcov/blob/master/LICENSE)
[![Gem](https://img.shields.io/gem/v/danger-xcov.svg?style=flat)](http://rubygems.org/gems/danger-xcov)
[![Gem Downloads](https://img.shields.io/gem/dt/danger-xcov.svg?style=flat)](http://rubygems.org/gems/danger-xcov)**danger-xcov** is the [Danger](https://github.com/danger/danger) plugin of
[xcov](https://github.com/nakiostudio/xcov), a friendly visualizer for Xcode's
code coverage files.
## Installation
```
sudo gem install danger-xcov
```## Usage
Simply add `xcov.report` to your `Dangerfile` passing those **xcov** parameters
you need. Click [here](https://github.com/nakiostudio/xcov#parameters-allowed) to
see the updated list of parameters allowed by **xcov**.```ruby
xcov.report(
scheme: 'EasyPeasy',
workspace: 'Example/EasyPeasy.xcworkspace',
exclude_targets: 'Demo.app',
minimum_coverage_percentage: 90
)
```The result is as cool as follows:
You can also process the output generated by **xcov** before posting the markdown
report as follows:```ruby
# Generate report
report = xcov.produce_report(
scheme: 'EasyPeasy',
workspace: 'Example/EasyPeasy.xcworkspace',
exclude_targets: 'Demo.app',
minimum_coverage_percentage: 90
)# Do some custom filtering with the report here
# Post markdown report
xcov.output_report(report)
```## License
This project is licensed under the terms of the MIT license. See the LICENSE file.