danger-undercover
A Danger plugin to show Undercover report.
Installation
$ gem install danger-undercover
Usage
To use this gem all the instruction provided in Undercover must be followed.
To know more about running undercover visit here
Use the
-c --compare refflag to specify a git ref (commit hash, branch name, tag) to compare against. This is a recommended usage for CI/CD build environments, asundercoverwillexit 1if there are any warnings.
This plugin provides a command undercover-report that uses undercover command from
Undercover gem. It takes all the options that undercover command takes.
They both works in the same way but what undercover-report extra does is it prints undercover report to a default
file in coverage/undercover.txt. This makes using undercover in CI server much easier.
To use it on a CI server, run the below command before running Danger so that the report file is created beforehand
which Danger will use..
$ undercover-report -c $compare_git_ref
Here $compare_git_ref as per undercover documentation, can be a commit hash, branch name, or tag. i.e. origin/master , origin/development
Then in your Dangerfile add the following line with the output file
undercover.reportDevelopment
- Clone this repo
- Run
bundle installto setup dependencies. - Run
bundle exec rake specto run the tests. - Use
bundle exec guardto automatically have tests run as you make changes. - Make your changes.
License
It is free software, and may be redistributed under the terms specified in the LICENSE file.
About
This project is maintained and funded by Nimble.
We love open source and do our part in sharing our work with the community! See our other projects or hire our team to help build your product.