tests/testthat/test-foobar.R

testthat::context("Testing foobar")
setwd(here::here(""))  # workspace is reset per file

testthat::test_that("foobar()", {
    testthat::expect_true(T);

    print("haha, I'm not skipped")    
})

testthat::test_that("foobar()", {
    testthat::expect_true(T);

    "Nice, I can use %>% " %>% print()    
})
dongzhuoer/minir documentation built on July 28, 2020, 7:23 a.m.