chronicler
chronicler copied to clipboard
Unit testing record ggplot
It'd be great to unit test record ggplot
but testing plots is not easy. Maybe a snapshot test? See https://testthat.r-lib.org/articles/snapshotting.html
Since a ggplot is a list, maybe we could save the list as an rds file and expect_equal the save list from the rds with the freshly generated one? Could be easy