test_dir

0th

Percentile

Run all of the tests in a directory.

Test files start with test and are executed in alphabetical order (but they shouldn't have dependencies). Helper files start with helper and loaded before any tests are run.

Usage
test_dir(path, filter = NULL, reporter = "summary",
    env = NULL)
Arguments
path
path to tests
reporter
reporter to use
filter
If not NULL, only tests with file names matching this regular expression will be executed. Matching will take on the file name after it has been stripped of "test-" and ".r".
env
environment in which to execute test suite. Defaults to new
Aliases
  • test_dir
Documentation reproduced from package testthat, version 0.7.1, License: GPL

Community examples

Looks like there are no examples yet.