These are used by test_dir() and friends
source_file(
path,
env = test_env(),
chdir = TRUE,
desc = NULL,
wrap = TRUE,
shuffle = FALSE,
error_call = caller_env()
)source_dir(
path,
pattern = "\\.[rR]$",
env = test_env(),
chdir = TRUE,
wrap = TRUE,
shuffle = FALSE
)
source_test_helpers(path = "tests/testthat", env = test_env())
source_test_setup(path = "tests/testthat", env = test_env())
source_test_teardown(path = "tests/testthat", env = test_env())
Path to files.
Environment in which to evaluate code.
Change working directory to dirname(path)?
A character vector used to filter tests. This is used to (recursively) filter the content of the file, so that only the non-test code up to and including the matching test is run.
Automatically wrap all code within test_that()? This ensures
that all expectations are reported, even if outside a test block.
If TRUE, randomly reorder the top-level expressions
in the file.
Regular expression used to filter files.