Learn R Programming

⚠️There's a newer version (3.6.4) of this package.Take me there.

covr (version 2.0.1)

Test Coverage for Packages

Description

Track and report code coverage for your package and (optionally) upload the results to a coverage service like Codecov (http://codecov.io) or Coveralls (http://coveralls.io). Code coverage is a measure of the amount of code being exercised by the tests. It is an indirect measure of test quality. This package is compatible with any testing methodology or framework and tracks coverage of both R code and compiled C/C++/Fortran code.

Copy Link

Version

Install

install.packages('covr')

Monthly Downloads

233,521

Version

2.0.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Jim Hester

Last Published

April 6th, 2016

Functions in covr (2.0.1)

test_me

an example function
percent_coverage

Provide percent coverage of package
print.coverage

Print a coverage object
package_coverage

Calculate test coverage for a package
clear_counters

clear all previous counters
shine

Display covr results using a shiny app
a

an example function
system_output

Run a system command and capture the output.
count

increment a given counter
exclusions

Exclusions
system_check

Run a system command and check if it succeeds.
coveralls

Run covr on a package and upload the result to coveralls
function_coverage

Calculate test coverage for specific function.
trace_calls

trace each call with a srcref attribute
tally_coverage

Tally coverage by line or expression
new_counter

initialize a new counter
simple

an example function
key

Generate a key for a call
zero_coverage

Provide locations of zero coverage
value

Retrieve the value from an object
codecov

Run covr on a package and upload the result to codecov.io