suppress_logs | R Documentation |
This function suppresses logger
when running tests via testthat
.
To suppress logs for a single test, add this function
call within the testthat::test_that
expression. To suppress logs for an entire
test file, call this function at the start of the file.
suppress_logs()
NULL
invisible
testthat::test_that("An example test", {
suppress_logs()
testthat::expect_true(TRUE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.