For all files with names of the form "^test_.+\.R$" in the package directory unit_tests run all functions with names of the form "^test_.+$" as RUnit tests. Attaches RUnit and pkg, requires RUnit. Stops on error.
run_rqdatatable_tests( ..., verbose = TRUE, package_test_dirs = "unit_tests", test_dirs = character(0), stop_on_issue = TRUE, stop_if_no_tests = TRUE, require_RUnit_attached = FALSE, require_pkg_attached = TRUE, rngKind = "Mersenne-Twister", rngNormalKind = "Inversion" )
... | not used, force later arguments to bind by name. |
---|---|
verbose | logical, if TRUE print more. |
package_test_dirs | directory names to look for in the installed package. |
test_dirs | paths to look for tests in. |
stop_on_issue | logical, if TRUE stop after errors or failures. |
stop_if_no_tests | logical, if TRUE stop if no tests were found. |
require_RUnit_attached | logical, if TRUE require RUnit be attached before testing. |
require_pkg_attached | logical, if TRUE require pkg be attached before testing. |
rngKind | pseudo-random number generator method name. |
rngNormalKind | pseudo-random normal generator method name. |
RUnit test results (invisible).