bioRad icon indicating copy to clipboard operation
bioRad copied to clipboard

devtool::test() automatically deletes snapshots

Open CeciliaNilsson709 opened this issue 3 years ago • 3 comments

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.

CeciliaNilsson709 avatar Jun 23 '21 13:06 CeciliaNilsson709

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

jonekeat avatar Mar 14 '24 09:03 jonekeat

I don't really have bandwidth to help investigate this currently

lionel- avatar Mar 14 '24 10:03 lionel-

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

clarkliming avatar Jun 21 '24 02:06 clarkliming