Creates package results and wraps it in a list, together with a timestamp at which the results were created and the current sessionInfo.
Usage
get_test_results(
package = "clinsight",
outfile = NULL,
include_skipped = TRUE,
run_as_not_cran = TRUE,
reporter = testthat::ListReporter
)
Arguments
- package
Character vector with the package name.
- outfile
If provided, the results will be saved in a .rds file on the
- include_skipped
Boolean. Whether to include skipped tests in the decision whether the tests were all successful.
- run_as_not_cran
Logical. If TRUE, will provide a temporary environmental variable NOT_CRAN='true' to ensure that tests are not skipped.
- reporter
a
testthat
file reporter. defaults totestthat::ListReporter
.