-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
devtool::test() automatically deletes snapshots #465
Comments
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 |
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 runningdevtools::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.The text was updated successfully, but these errors were encountered: