use_testthat {usethis}R Documentation

Sets up overall testing infrastructure

Description

Creates tests/testthat/, tests/testthat.R, and adds the testthat package to the Suggests field. Learn more in https://r-pkgs.org/tests.html

Usage

use_testthat()

See Also

use_test() to create individual test files

Examples

## Not run: 
use_testthat()

use_test()

use_test("something-management")

## End(Not run)

[Package usethis version 1.6.3 Index]