| default_reporter {testthat} | R Documentation |
Determine default reporters
Description
These three functions are used to determine the default reporters used
for test_dir(), test_file(), and test_package():
-
default_reporter()returns the default reporter fortest_dir(). IfparallelisTRUE, it uses ParallelProgressReporter, which you can override with optiontestthat.default_parallel_reporter. IfparallelisFALSE, it uses ProgressReporter, which you can override with optiontestthat.default_reporter. -
default_compact_reporter()returns the default reporter fortest_file(). It defaults to CompactProgressReporter, which you can override with thetestthat.default_compact_reporteroption. -
check_reporter()returns the default reporter fortest_package(). It defaults to CheckReporter, which you can override with thetestthat.default_check_reporteroption.
Both default_reporter() and default_compact_reporter() will use
LlmReporter if it appears that the tests are being run by a coding agent.
Usage
default_reporter(parallel = FALSE)
default_compact_reporter()
check_reporter()
Arguments
parallel |
If |