covr: Test Coverage for Packages

Share:

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 a set of tests. It is an indirect measure of test quality and completeness. This package is compatible with any testing methodology or framework and tracks coverage of both R code and compiled C/C++/FORTRAN code.

Author
Jim Hester [aut, cre], Willem Ligtenberg [ctb]
Date of publication
2016-12-05 18:28:47
Maintainer
Jim Hester <james.f.hester@gmail.com>
License
MIT + file LICENSE
Version
2.2.1
URLs

View on CRAN

Man pages

clear_counters
clear all previous counters
codecov
Run covr on a package and upload the result to codecov.io
count
increment a given counter
coveralls
Run covr on a package and upload the result to coveralls
exclusions
Exclusions
file_coverage
Calculate test coverage for sets of files
function_coverage
Calculate test coverage for a specific function.
key
Generate a key for a call
new_counter
initialize a new counter
package_coverage
Calculate test coverage for a package
percent_coverage
Provide percent coverage of package
print.coverage
Print a coverage object
report
Display covr results using a standalone report
system_check
Run a system command and check if it succeeds.
system_output
Run a system command and capture the output.
tally_coverage
Tally coverage by line or expression
to_cobertura
Create a Cobertura XML file
trace_calls
trace each call with a srcref attribute
value
Retrieve the value from an object
zero_coverage
Provide locations of zero coverage

Files in this package

covr
covr/inst
covr/inst/www
covr/inst/www/shiny.css
covr/inst/doc
covr/inst/doc/how_it_works.Rmd
covr/inst/doc/how_it_works.html
covr/inst/doc/how_it_works.R
covr/tests
covr/tests/testthat.R
covr/tests/testthat
covr/tests/testthat/test-exclusions.R
covr/tests/testthat/test-utils.R
covr/tests/testthat/test-report.htm
covr/tests/testthat/test-Compiled.R
covr/tests/testthat/a
covr/tests/testthat/TestR6
covr/tests/testthat/TestR6/tests
covr/tests/testthat/TestR6/tests/testthat.R
covr/tests/testthat/TestR6/tests/testthat
covr/tests/testthat/TestR6/tests/testthat/test-TestR6.R
covr/tests/testthat/TestR6/NAMESPACE
covr/tests/testthat/TestR6/R
covr/tests/testthat/TestR6/R/TestR6.R
covr/tests/testthat/TestR6/DESCRIPTION
covr/tests/testthat/TestR6/man
covr/tests/testthat/TestR6/man/a.Rd
covr/tests/testthat/test-gcov.R
covr/tests/testthat/test-vectorized.R
covr/tests/testthat/corner-cases.R
covr/tests/testthat/test-summary.R
covr/tests/testthat/corner-cases.Rds
covr/tests/testthat/TestPrint
covr/tests/testthat/TestPrint/tests
covr/tests/testthat/TestPrint/tests/testthat.R
covr/tests/testthat/TestPrint/tests/testthat
covr/tests/testthat/TestPrint/tests/testthat/test-TestSummary.R
covr/tests/testthat/TestPrint/NAMESPACE
covr/tests/testthat/TestPrint/R
covr/tests/testthat/TestPrint/R/TestPrint.R
covr/tests/testthat/TestPrint/DESCRIPTION
covr/tests/testthat/TestPrint/man
covr/tests/testthat/TestPrint/man/test_me.Rd
covr/tests/testthat/test-report.R
covr/tests/testthat/test-null.R
covr/tests/testthat/test-RC.R
covr/tests/testthat/TestUseTry
covr/tests/testthat/TestUseTry/tests
covr/tests/testthat/TestUseTry/tests/testthat
covr/tests/testthat/TestUseTry/tests/testthat/test-notry.R
covr/tests/testthat/TestUseTry/tests/tests.R
covr/tests/testthat/TestUseTry/NAMESPACE
covr/tests/testthat/TestUseTry/R
covr/tests/testthat/TestUseTry/R/notry.R
covr/tests/testthat/TestUseTry/DESCRIPTION
covr/tests/testthat/TestCompiled
covr/tests/testthat/TestCompiled/tests
covr/tests/testthat/TestCompiled/tests/testthat.R
covr/tests/testthat/TestCompiled/tests/testthat
covr/tests/testthat/TestCompiled/tests/testthat/test-TestCompiled.R
covr/tests/testthat/TestCompiled/src
covr/tests/testthat/TestCompiled/src/simple.c
covr/tests/testthat/TestCompiled/src/simple-header.h
covr/tests/testthat/TestCompiled/NAMESPACE
covr/tests/testthat/TestCompiled/R
covr/tests/testthat/TestCompiled/R/TestCompiled.R
covr/tests/testthat/TestCompiled/DESCRIPTION
covr/tests/testthat/TestCompiled/man
covr/tests/testthat/TestCompiled/man/simple.Rd
covr/tests/testthat/test-covr.R
covr/tests/testthat/test-corner-cases.R
covr/tests/testthat/test-codecov.R
covr/tests/testthat/test-functions.R
covr/tests/testthat/TestS4
covr/tests/testthat/TestS4/tests
covr/tests/testthat/TestS4/tests/testthat.R
covr/tests/testthat/TestS4/tests/testthat
covr/tests/testthat/TestS4/tests/testthat/test-TestS4.R
covr/tests/testthat/TestS4/NAMESPACE
covr/tests/testthat/TestS4/R
covr/tests/testthat/TestS4/R/TestS4.R
covr/tests/testthat/TestS4/DESCRIPTION
covr/tests/testthat/TestS4/man
covr/tests/testthat/TestS4/man/a.Rd
covr/tests/testthat/test-trace_calls.R
covr/tests/testthat/test-parallel.R
covr/tests/testthat/cobertura.xml
covr/tests/testthat/test-print.R
covr/tests/testthat/test-memoised.R
covr/tests/testthat/TestRC
covr/tests/testthat/TestRC/tests
covr/tests/testthat/TestRC/tests/testthat.R
covr/tests/testthat/TestRC/tests/testthat
covr/tests/testthat/TestRC/tests/testthat/test-TestRC.R
covr/tests/testthat/TestRC/NAMESPACE
covr/tests/testthat/TestRC/R
covr/tests/testthat/TestRC/R/TestRC.R
covr/tests/testthat/TestRC/DESCRIPTION
covr/tests/testthat/TestRC/man
covr/tests/testthat/TestRC/man/a.Rd
covr/tests/testthat/TestExclusion
covr/tests/testthat/TestExclusion/tests
covr/tests/testthat/TestExclusion/tests/testthat.R
covr/tests/testthat/TestExclusion/tests/testthat
covr/tests/testthat/TestExclusion/tests/testthat/test-TestExclusion.R
covr/tests/testthat/TestExclusion/NAMESPACE
covr/tests/testthat/TestExclusion/R
covr/tests/testthat/TestExclusion/R/TestExclusion.R
covr/tests/testthat/TestExclusion/DESCRIPTION
covr/tests/testthat/TestExclusion/man
covr/tests/testthat/TestExclusion/man/test_me.Rd
covr/tests/testthat/TestParallel
covr/tests/testthat/TestParallel/tests
covr/tests/testthat/TestParallel/tests/testthat.R
covr/tests/testthat/TestParallel/tests/testthat
covr/tests/testthat/TestParallel/tests/testthat/test-TestParallel.R
covr/tests/testthat/TestParallel/NAMESPACE
covr/tests/testthat/TestParallel/R
covr/tests/testthat/TestParallel/R/TestParallel.R
covr/tests/testthat/TestParallel/DESCRIPTION
covr/tests/testthat/TestParallel/man
covr/tests/testthat/TestParallel/man/test_me.Rd
covr/tests/testthat/test-package_coverage.R
covr/tests/testthat/test-file_coverage.R
covr/tests/testthat/test-R6.R
covr/tests/testthat/test-coveralls.R
covr/tests/testthat/test-S4.R
covr/tests/testthat/corner-cases-test.R
covr/tests/testthat/test-braceless.R
covr/tests/testthat/TestCompiledSubdir
covr/tests/testthat/TestCompiledSubdir/tests
covr/tests/testthat/TestCompiledSubdir/tests/testthat.R
covr/tests/testthat/TestCompiledSubdir/tests/testthat
covr/tests/testthat/TestCompiledSubdir/tests/testthat/test-TestCompiledSubdir.R
covr/tests/testthat/TestCompiledSubdir/src
covr/tests/testthat/TestCompiledSubdir/src/Makevars
covr/tests/testthat/TestCompiledSubdir/src/lib
covr/tests/testthat/TestCompiledSubdir/src/lib/simple.c
covr/tests/testthat/TestCompiledSubdir/NAMESPACE
covr/tests/testthat/TestCompiledSubdir/R
covr/tests/testthat/TestCompiledSubdir/R/TestCompiledSubdir.R
covr/tests/testthat/TestCompiledSubdir/DESCRIPTION
covr/tests/testthat/TestCompiledSubdir/man
covr/tests/testthat/TestCompiledSubdir/man/simple.Rd
covr/tests/testthat/test-cobertura.R
covr/tests/testthat/b
covr/tests/testthat/TestSummary
covr/tests/testthat/TestSummary/tests
covr/tests/testthat/TestSummary/tests/testthat.R
covr/tests/testthat/TestSummary/tests/testthat
covr/tests/testthat/TestSummary/tests/testthat/test-TestSummary.R
covr/tests/testthat/TestSummary/NAMESPACE
covr/tests/testthat/TestSummary/R
covr/tests/testthat/TestSummary/R/TestSummary.R
covr/tests/testthat/TestSummary/DESCRIPTION
covr/tests/testthat/TestSummary/man
covr/tests/testthat/TestSummary/man/test_me.Rd
covr/src
covr/src/reassign.c
covr/NAMESPACE
covr/NEWS.md
covr/R
covr/R/R6.R
covr/R/parse_data.R
covr/R/codecov.R
covr/R/utils.R
covr/R/vectorized.R
covr/R/coveralls.R
covr/R/parallel.R
covr/R/report.R
covr/R/covr.R
covr/R/display_name.R
covr/R/system.R
covr/R/RC.R
covr/R/replace.R
covr/R/S4.R
covr/R/compiled.R
covr/R/data_frame.R
covr/R/trace_calls.R
covr/R/value.R
covr/R/summary_functions.R
covr/R/cobertura.R
covr/R/exclusions.R
covr/R/zzz.R
covr/vignettes
covr/vignettes/how_it_works.Rmd
covr/README.md
covr/MD5
covr/build
covr/build/vignette.rds
covr/DESCRIPTION
covr/man
covr/man/coveralls.Rd
covr/man/key.Rd
covr/man/value.Rd
covr/man/percent_coverage.Rd
covr/man/new_counter.Rd
covr/man/exclusions.Rd
covr/man/trace_calls.Rd
covr/man/function_coverage.Rd
covr/man/zero_coverage.Rd
covr/man/package_coverage.Rd
covr/man/clear_counters.Rd
covr/man/system_output.Rd
covr/man/to_cobertura.Rd
covr/man/print.coverage.Rd
covr/man/count.Rd
covr/man/report.Rd
covr/man/system_check.Rd
covr/man/codecov.Rd
covr/man/tally_coverage.Rd
covr/man/file_coverage.Rd
covr/LICENSE