Learn R Programming

FastUtils (version 0.2.1)

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

Value

No return value, called for side effects.

Arguments

desc

A description of the test.

code

The code to be tested.

Examples

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

Run the code above in your browser using DataLab