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"))
})

Try the usethis package in your browser

Any scripts or data that you put into this service are public.

usethis documentation built on Sept. 11, 2024, 5:29 p.m.