tests/testthat/test-exception.R

context("Tests")

# This will error "Error in sqrt(Inf, foo = "bar") : 2 arguments passed to 'sqrt' which requires 1"
sqrt(2, foo = 'bar')

test_that("I never run", {
    expect_equal(1, 1)
})
bbimber/RTest documentation built on Nov. 3, 2019, 2:08 p.m.