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
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test-env.R
\name{is_testing}
\alias{is_testing}
\alias{is_parallel}
\alias{testing_package}
\title{Determine testing status}
\usage{
is_testing()
is_parallel()
testing_package()
}
\description{
\itemize{
\item \code{is_testing()} determine if code is being run as part of a test
\item \code{is_parallel()} if the test is being run in parallel.
\item \code{testing_package()} gives name of the package being tested.
}
These are thin wrappers that retrieve the values of environment variables.
To avoid creating a run-time dependency on testthat, you can inline the
source of these functions directly into your package.
}
|