File: is_testing.Rd

package info (click to toggle)
r-cran-testthat 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,996 kB
  • sloc: cpp: 9,265; ansic: 37; sh: 15; makefile: 5
file content (25 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (2)
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.
}