Description Usage Arguments Details Value Examples
View source: R/test_coverage.R
This determines the test coverage of the target package based on the desc
argument of test_that()
calls. If you require a more comprehensive analysis
of test coverage, try the package covr instead.
1 | test_coverage(from_tags = TRUE, from_desc = TRUE)
|
from_tags |
|
from_desc |
|
test_coverage
looks in .covrignore
for functions that should be ignored
for coverage analysis (see usethis::use_covr_ignore()
)
A Test_coverage
object. This is a data.frame
containing the
following columns:
fun: Name of the function
exp: Is function is exported?
s3: Is function an S3 method?
tested: Do unit tests exist for function?
ignore: Is function listed in ‘tests/testthat/_testignore’?
1 2 3 4 5 | ## Not run:
x <- test_coverage()
as.data.frame(x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.