tests/testthat/test-case-2.R

expected <- config::get("some_config", file = system.file("config.yml", package = "covrconfig"))
test_that("Issue type 2", {
  msg <- hello()
  expect_equal(msg, expected)
})
gcinar/covr-config-issue documentation built on Nov. 10, 2019, 9:27 p.m.