use_testthat: Sets up overall testing infrastructure

Description Usage Arguments See Also Examples

View source: R/test.R

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

1

Arguments

edition

testthat edition to use. Defaults to the latest edition, i.e. the major version number of the currently installed testthat.

parallel

Should tests be run in parallel? This feature appeared in testthat 3.0.0; see https://testthat.r-lib.org/articles/parallel.html for details and caveats.

See Also

use_test() to create individual test files

Examples

1
2
3
4
5
6
7
8
## Not run: 
use_testthat()

use_test()

use_test("something-management")

## End(Not run)

usethis documentation built on Oct. 17, 2021, 1:06 a.m.