File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 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
1919is_testing <- function () {
You can’t perform that action at this time.
0 commit comments