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

Lists

README

        


xcov Logo

-------

[![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.



Join me and the amazing Mobile Team at monzo

## 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.