auto_test {testthat}R Documentation

Watches code and tests for changes, rerunning tests as appropriate.

Description

The idea behind auto_test is that you just leave it running while you develop your code. Everytime you save a file it will be automatically tested and you can easily see if your changes have caused any test failures.

Usage

  auto_test(code_path, test_path, reporter = "summary",
    env = NULL)

Arguments

code_path

path to directory containing code

test_path

path to directory containing tests

reporter

test reporter to use

env

environment in which to execute test suite. Defaults to new environment inheriting from the global environment.

Details

The current strategy for rerunning tests is as follows:

In the future, auto_test might implement one of the following more intelligent alternatives:

See Also

auto_test_package


[Package testthat version 0.6 Index]