Find test files
find_test_scripts(
path,
filter = NULL,
invert = FALSE,
...,
full.names = TRUE,
start_first = NULL
)
A character vector of paths
path to tests
If not NULL
, only tests with file names matching this
regular expression will be executed. Matching is performed on the file
name after it's stripped of "test-"
and ".R"
.
If TRUE
return files which don't match.
Additional arguments passed to grepl()
to control filtering.
A character vector of file patterns (globs, see
utils::glob2rx()
). The patterns are for the file names (base names),
not for the whole paths. testthat starts the files matching the
first pattern first, then the ones matching the second, etc. and then
the rest of the files, alphabetically. Parallel tests tend to finish
quicker if you start the slowest files first. NULL
means alphabetical
order.