bioRad
bioRad copied to clipboard
devtool::test() automatically deletes snapshots
When running devtools::test()
the snapshots from the plot tests are automatically deleted each time, causing the tests to always pass since there is no previous snapshot to compare too. This does not happen when testing just the test files individually or when running devtools::check()
. It seems to be a known issue but the fix there does not seem to work for our case (yet). I'll keep an eye on it.
I also encounter same issue in my private repo, can @lionel- help us to investigate? Or please let me know if anything I could help with
The testthat package is amazing for unit tests, it is an important package for R community
I don't really have bandwidth to help investigate this currently
i think the issue is that, your tests are totally skipped and the snapshot file is not annouced yet. adding a announce_snapshot_file
before skipping for your snapshot files should work for you