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

test_index(
  markers = interactive() && requireNamespace("rstudioapi", quietly = TRUE) &&
    rstudioapi::isAvailable()
)

# S3 method for 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)