Skip to contents

Uses the {covr} package to produce unit test coverage reports. Uses the {testhat} package to run all unit tests in tests/testthat directory.

Usage

covr_report(rhino_coverage = covr_r(), ...)

Arguments

rhino_coverage

a rhino coverage dataset, defaults to covr_r().

...

additional arguments to pass to covr::report()

Value

None. This function is called for side effects.

Examples

if (interactive()) {
  # Run a test coverage report on a rhino app
  covr_report()
}