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


testthis documentation built on April 14, 2020, 6:23 p.m.