Skip to content

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 for test_dir(). If parallel is TRUE, it uses ParallelProgressReporter, which you can override with option testthat.default_parallel_reporter. If parallel is FALSE, it uses ProgressReporter, which you can override with option testthat.default_reporter.

  • default_compact_reporter() returns the default reporter for test_file(). It defaults to CompactProgressReporter, which you can override with the testthat.default_compact_reporter option.

  • check_reporter() returns the default reporter for test_package(). It defaults to CheckReporter, which you can override with the testthat.default_check_reporter option.

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 TRUE, return a reporter suitable for parallel testing.