Learn R Programming

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

covr (version 1.2.0)

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

123,125

Version

1.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Jim Hester

Last Published

June 25th, 2015

Functions in covr (1.2.0)

RCMD

Run R CMD xxx from within R
environment_coverage_

calculate the coverage on an environment after evaluating some expressions.
on_path

Test if an object is on the path.
find_rtools

Find rtools.
R

Run R xxx from within R
display_name<-

Set the display name for an object
new_counter

initialize a new counter
tally_coverage

Tally coverage by line or expression
print.coverage

Print a coverage object
a

an example function
function_coverage

Calculate test coverage for specific function.
value

Retrieve the value from an object
test_me

an example function
path

Get/set the PATH variable.
r_env_vars

Environment variables to set when calling R
subprocess

Run R commands in a R subprocess
package_coverage

Calculate test coverage for a package
key

Generate a key for a call
simple

an example function
trace_calls

trace each call with a srcref attribute
coveralls

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

clear all previous counters
exclusions

Exclusions
zero_coverage

Provide locations of zero coverage
system_check

Run a system command and check if it succeeds.
percent_coverage

Provide percent coverage of package
codecov

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

Retrieve the display name from an object
system_output

Run a system command and capture the output.
with_something

Execute code in temporarily altered environment.
shine

Display covr results using a shiny app
environment_coverage

calculate the coverage on an environment after evaluating some expressions.
count

increment a given counter