Demo

Reminder from last time

We have a package with a function.


A test

  • use_testthat().

  • use_test("time"): first a simple test, then a snapshot test, then a snapshot of the error.

  • devtools::test() / test the file on its own via the button.

  • devtools::check()

πŸ‘€ testthat website


More testing

πŸ‘€ withr website

πŸ‘€ Helper code and files for your testthat tests

🧰 repeat the steps!


GitHub Actions

πŸ‘€ usethis support for GitHub Actions setup

🧰 Repeat the steps!