Alias for devtools::test()
rtest(
pkg = ".",
filter = NULL,
stop_on_failure = FALSE,
export_all = TRUE,
...
)
Arguments
pkg |
The package to use, can be a file path to the package or a
package object. See as.package() for more information. |
filter |
If not NULL , only tests with file names matching this
regular expression will be executed. Matching be performed on the file
name after it has been stripped of "test-" and ".R" . |
stop_on_failure |
If TRUE , throw an error if any tests fail.
For historical reasons, the default value of stop_on_failure is TRUE
for test_package() and test_check() but FALSE for test_dir() , so
if you're calling test_dir() you may want to consider explicitly setting
stop_on_failure = TRUE . |
export_all |
If TRUE (the default), export all objects.
If FALSE , export only the objects that are listed as exports
in the NAMESPACE file. |
... |
additional arguments passed to testthat::test_dir() and
covr::package_coverage() |
See also