| use_testthat {usethis} | R Documentation |
use_testthat() sets up testing infrastructure, creating
‘tests/testthat.R’ and ‘tests/testthat/’, and
adding testthat to the suggested packages. use_test()
creates ‘tests/testthat/test-<name>.R’ and opens it for editing.
use_testthat() use_test(name = NULL, open = interactive())
name |
Test name. if |
open |
Open the newly created file for editing? Happens in RStudio, if
applicable, or via |
The testing chapter of R Packages.