testthat
testthat copied to clipboard
Add support for test files in nested directories
Closes #1605
Allows the use of directories to organize test files.
The recursive argument is optional and defaults to FALSE.
-
testthat::test_dir("tests/testthat/")will work as before. Just one single directory, and with the default reporter. -
testthat::test_dir("tests/testthat/", recursive = TRUE)to run all of the test scripts in all directories intests/testthat/.testthat::test_dir()will still only see test scripts with^test.*\\.[rR]$filenames.