Description Usage Arguments Details Value Author(s) See Also Examples
pkgCoverage
computes the code coverage that a
packages's unit testing suite provides it.
1 | pkgCoverage(filepaths, test.dir = NULL, ...)
|
packages |
character vector of directory paths to package source directories. |
test.dir |
character containing the relative file path to the tests directory. |
... |
parameters to pass onto reportCoverage |
This function is for package source directories.
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.
List containing coverage values and test enviroment. Side effect: A webpage of the report(s) will be opened.
Mango Solutionssupport@mango-solutions.com
reportCoverage
, cranCoverage
,
testCoverage
1 2 3 4 5 6 | ## Not run:
pkgCoverage(
filepaths = system.file("examples/add/", package = "testCoverage"),
test.dir = "inst/tests/testthat/tests1")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.