docs/2020-02-18_r-packages-testing.md

2020-02-18: Testing

From https://r-pkgs.org/tests.html

Why?

How?

usethis::use_testthat()

test_that("a_function ....", {
  expect_that(a_)
})

What

Whenever you are tempted to type something into a print statement or a debugger expression, write it as a test instead. — Martin Fowler

What



2DegreesInvesting/ds-incubator documentation built on Oct. 13, 2021, 10:09 a.m.