Danger plugin to validate the code coverage of the files changed in a pull request
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets_readme
lib bumped version number Dec 29, 2017
.gitignore Initial commit Jun 5, 2016
Gemfile created gemspec, rakefile and gemfile Jun 5, 2016
LICENSE
README.md
Rakefile created gemspec, rakefile and gemfile Jun 5, 2016
danger-xcov.gemspec

README.md

xcov Logo


Twitter: @nakiostudio License Gem Gem Downloads

danger-xcov is the Danger plugin of 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 to see the updated list of parameters allowed by xcov.

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:

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