1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test.R
\name{use_testthat}
\alias{use_testthat}
\title{Sets up overall testing infrastructure}
\usage{
use_testthat(edition = NULL, parallel = FALSE)
}
\arguments{
\item{edition}{testthat edition to use. Defaults to the latest edition, i.e.
the major version number of the currently installed testthat.}
\item{parallel}{Should tests be run in parallel? This feature appeared in
testthat 3.0.0; see \url{https://testthat.r-lib.org/articles/parallel.html} for
details and caveats.}
}
\description{
Creates \verb{tests/testthat/}, \code{tests/testthat.R}, and adds the testthat package
to the Suggests field. Learn more in \url{https://r-pkgs.org/testing-basics.html}
}
\examples{
\dontrun{
use_testthat()
use_test()
use_test("something-management")
}
}
\seealso{
\code{\link[=use_test]{use_test()}} to create individual test files
}
|