| run_tool_tests | R Documentation |
Discovers 'testthat' files under 'tools/testthat/' and executes them in a deterministic order. An optional file-path filter can be supplied to narrow the run to a subset of tool tests.
run_tool_tests(args = commandArgs(trailingOnly = TRUE))
args |
Character vector of CLI arguments. Defaults to 'commandArgs(trailingOnly = TRUE)'. |
CLI entry point: './tools/test_tools.R –help'
Supported options are: - '–filter' / '-f' to match tool test file paths - '–help' / '-h' to print CLI help
Invisibly returns the tool test files that were executed. If '–help' or '-h' is supplied, returns invisibly with 'NULL'.
## Not run:
run_tool_tests()
run_tool_tests(c("--filter", "clean"))
run_tool_tests("--help")
## End(Not run)