reporter-accessors {testthat}R Documentation

Get/set reporter; execute code in specified reporter.

Description

Changes global reporter to that specified, runs code and the returns global reporter back to previous value.

Usage

set_reporter(reporter)

get_reporter()

with_reporter(reporter, code)

Arguments

reporter

test reporter to use

code

code block to execute


[Package testthat version 0.11.0 Index]