Graphics Group @ ISU

We are interested in graphics and computational tools.

Snapshot tests in testthat

Writing unit tests for complicated objects such as text outputs containing many characters, html, .rtf, graphical outputs, etc is very challenging. The new feature in the 3rd edition of testthat package gives the users the ability to record the expected output in a separate file to review by the user instead of using code to describe expected output. It provides tools to automatically generate and update that file as needed. In this presentation, I will go over my recent experience of working with snapshot tests in the 3rd edition of testthat package in validating complicated objects in R. Read more →