tests/testthat/test-coverage.R

test_that("warning if prep step fails", {
  bad1 <- system.file("bad1", package = "goodpractice")

  expect_warning(gp(bad1, checks = "covr"),
                 "Prep step for test coverage failed.")
})
MangoTheCat/goodpractice documentation built on Sept. 5, 2022, 2 p.m.