tests/testthat/test-foo.R

test_that("foo works", {
  expect_equal(foo(), 1)
})

#test_that("foo does not work", {
  #expect_equal(foo(), 2)
#})

#test_that("bar errors", {
  #expect_equal(bar(1), 2)
#})
r-lib/r-azure-pipelines documentation built on Nov. 5, 2019, 2:01 a.m.