tests/testthat/test-warning/test-warning.R

test_that("warning emitted", {
  warning("This is not a test", call. = FALSE)
})
r-lib/testthat documentation built on April 19, 2019, 7:05 p.m.