test_index: Generate an index of all test_that calls

Description Usage Arguments Value

View source: R/test_index.R

Description

Generates an index the desc arguments of all test_that() calls in the tests/testthat directory of a package.

Usage

1
2
3
4
5
6
7
test_index(
  markers = interactive() && requireNamespace("rstudioapi", quietly = TRUE) &&
    rstudioapi::isAvailable()
)

## S3 method for class 'test_index'
print(x, ...)

Arguments

markers

logical scalar. If TRUE, new markers are created in the RStudio markers pane. If FALSE, the index is printed to the console instead.

x

a data.frame of subclass "test_index"

...

currently ignored

Value

A test_index data.frame (invisibly if markers == TRUE)


s-fleck/testthis documentation built on Feb. 23, 2022, 3:48 p.m.