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: 12 days 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T10:54:47.000Z (9 months ago)
- Last Synced: 2025-04-23T18:03:47.823Z (19 days ago)
- Language: Ruby
- Homepage:
- Size: 287 KB
- Stars: 106
- Watchers: 2
- Forks: 26
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-danger - danger-xcov - Danger plugin to validate the code coverage of the files changed in a pull request. (Plugins / Ruby (danger))
README
![]()
-------
[](https://twitter.com/nakiostudio)
[](https://github.com/nakiostudio/xcov/blob/master/LICENSE)
[](http://rubygems.org/gems/danger-xcov)
[](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.