-
Notifications
You must be signed in to change notification settings - Fork 317
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
Should snapshot_accept() succeed from within tests/? #1485
Comments
This feels like a sufficiently unusual workflow that we're unlikely to work on it, but I'd review a PR for it. |
ran into this again 😅 |
Now noticed I think what's most confusing here is the misleading message:
Would adding "Run |
Yeah, I think so. Are you changing the path with code? (e.g. with |
no. workflow is
I find that's the easiest way to run basically as R CMD check does without needing to memorize anything like whether it's test_dir()/test_check()/check_package()/test_package(). |
Ah yeah, in that case I'd just case you have an unusual workflow and you're on your own. You could make life a little easier on yourself by running |
I sometimes run tests like
However, this conflicts with using snapshot tests; after the output updated, I was instructed to run
snapshot_accept(...)
, but this failed:However, it did create the temp (.new) file, and succeeded like so:
The text was updated successfully, but these errors were encountered: