| auto_test | R Documentation |
The idea behind auto_test() is that you just leave it running while
you develop your code. Every time you save a file it will be automatically
tested and you can easily see if your changes have caused any test
failures.
The current strategy for rerunning tests is as follows:
if any code has changed, then those files are reloaded and all tests rerun
otherwise, each new or modified test is run
auto_test(
code_path,
test_path,
reporter = default_reporter(),
env = test_env(),
hash = TRUE
)
auto_test_package(pkg = ".", reporter = default_reporter(), hash = TRUE)
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. |
hash |
Passed on to |
pkg |
path to package |
auto_test_package()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.