tests/testthat/test_dir/test-failures.R

context("failures")

test_that("just one failure", {
  expect_true(FALSE)
})

test_that("one failure on two", {
  expect_false(FALSE)
  expect_true(FALSE)
})

test_that("no failure", {
  expect_false(FALSE)
  expect_true(TRUE)
})
r-lib/testthat documentation built on April 19, 2019, 7:05 p.m.