test_quietly_that: Run a Testthat test Quietly

View source: R/testing.R

test_quietly_thatR Documentation

Run a Testthat test Quietly

Description

This function runs a test_that block quietly, suppressing messages and output from any verbose functions.

Usage

test_quietly_that(desc, code)

Arguments

desc

A description of the test.

code

The code to be tested.

Value

No return value, called for side effects.

Examples

# Run a test quietly
test_quietly_that("quiet test example", {
    testthat::expect_equal(1 + 1, 2)
})

FastUtils documentation built on Sept. 11, 2024, 5:13 p.m.