tests/testthat/test-coverage.R

test_that("we use specific URLs in a codecov badge", {
  create_local_package()
  withr::local_options(usethis.quiet = FALSE)
  expect_snapshot(use_codecov_badge("OWNER/REPO"))
})
r-lib/usethis documentation built on Nov. 28, 2024, 7:11 a.m.