$ gem install danger-undercover
To use this gem all the instruction provided in Undercover must be followed.
To know more about running undercover visit here
-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, as
exit 1if there are any warnings.
Run the below command to output undercover report to a
txt file which this plugin will use to geneate PR comments.
To use it on a CI server, run this command before running
Danger so that the file is created beforehand.
$ undercover -c $compare_git_ref > coverage/undercover.txt
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
- Clone this repo
bundle installto setup dependencies.
bundle exec rake specto run the tests.
bundle exec guardto automatically have tests run as you make changes.
- Make your changes.
It is free software, and may be redistributed under the terms specified in the LICENSE file.
This project is maintained and funded by Nimble.