test_index {testthis}R Documentation

Generate an index of all test_that calls

Description

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

Usage

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

## 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)


[Package testthis version 1.1.1 Index]