cmu-delphi / epipredict

Tools for building predictive models in epidemiology.
https://cmu-delphi.github.io/epipredict/
Other
8 stars 8 forks source link

Add canned forecaster snapshot tests #306

Closed dshemetov closed 2 months ago

dshemetov commented 3 months ago

Snapshot testing is useful when making refactoring changes, since it helps you fix the outputs of your code and makes sure it doesn't drift when you don't want it to. The {testthat} library provides convenient ways to snapshot using expect_snapshot. I'd like to add and make sure we have a few snapshots for our canned forecasters.