Skip to content

Commit 4c2d140

Browse files
committed
Doc improvements
1 parent 39235b1 commit 4c2d140

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

R/test-env.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
#'
33
#' @description
44
#' These functions help you determine if you code is running in a particular
5-
#' testing content:
5+
#' testing context:
66
#'
7-
#' * `is_testing()` is `TRUE` when run inside a test.
8-
#' * `is_parallel()` is `TRUE` if the test is run in parallel.
9-
#' * `is_checking()` is `TRUE` when the tests run as part of `R CMD check`
10-
#' (i.e. by [test_check()]).
7+
#' * `is_testing()` is `TRUE` inside a test.
8+
#' * `is_snapshot()` is `TRUE` inside a snapshot test
9+
#' * `is_checking()` is `TRUE` inside of `R CMD check` (i.e. by [test_check()]).
10+
#' * `is_parallel()` is `TRUE` if the tests are run in parallel.
1111
#' * `testing_package()` gives name of the package being tested.
1212
#'
1313
#' A common use of these functions is to compute a default value for a `quiet`
14-
#' argument with `is_testing() && !is_snapshotting()`. In this case, you'll
14+
#' argument with `is_testing() && !is_snapshot()`. In this case, you'll
1515
#' want to avoid an run-time dependency on testthat, in which case you should
16-
#' just copy the implementation of these functions in a `utils.R` or similar.
16+
#' just copy the implementation of these functions into a `utils.R` or similar.
1717
#'
1818
#' @export
1919
is_testing <- function() {

man/is_testing.Rd

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)