cranCoverage: Code coverage test packages from CRAN.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

cranCoverage downloads and computes the code coverage that bundled unit tests provides the package.

Usage

1
cranCoverage(packages, test.dir = NULL, ...)

Arguments

packages

character vector of package names currently available from CRAN.

test.dir

character containing the relative file path to the tests directory.

...

parameters to pass onto reportCoverage

Details

This is for testing the latest releases of packages from CRAN.

The function will attempt to detect the directory and type of tests used if no test.dir parameter is passed. See reportCoverage for descriptions of additional parameters.

Value

List containing coverage values and test enviroment. Side effect: A webpage of the report(s) will be opened.

Author(s)

Mango Solutionssupport@mango-solutions.com

See Also

reportCoverage, pkgCoverage, testCoverage

Examples

1
2
3
4
## Not run: 
cranCoverage(c('zoo', 'stringr'))

## End(Not run)

MangoTheCat/testCoverage documentation built on May 7, 2019, 2:24 p.m.