tests/testthat/test-list-reporter/test-exercise-list-reporter.R

test_that("test1", expect_true(TRUE))
test_that("test2", expect_true(TRUE))

test_that("test-pass", expect_true(TRUE))

test_that("test-fail", expect_true(FALSE))

test_that("test-error", {
  stop('argh')
  expect_true(TRUE)
})

Try the testthat package in your browser

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

testthat documentation built on Jan. 21, 2022, 1:10 a.m.