-
Notifications
You must be signed in to change notification settings - Fork 340
Preserve snapshots for tests that were not run #2215
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
Conversation
|
Claude finished @hadley's task —— View job Code Review Complete
Review FindingsIssue: The fix preserves snapshots for tests that were not run when filtering with
Code quality: Clean implementation with appropriate test coverage. The filtering logic correctly preserves order by setting matched elements to NULL rather than removing them. Test coverage: Good - the new test LGTM overall. The minor documentation issue is worth addressing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I checked with my original reprex and also checked that this new test fails when applied to main. I pushed one small commit with another skip, which seems consistent with what I see going on elsewhere (unrelated but came across my radar while reviewing).
|
@jennybc FWIW testthat should now automatically skip suggested packages that are not installed. |
I saw a different result, but I can't say what version of testthat I had installed at that moment. I only made R 4.5 my default version very recently and am still discovering packages I haven't installed yet on R 4.5. I think I noticed the snapshot change (due to not having R7 installed) when I did the preliminary |
|
Or does the automatic skip maybe only apply on CRAN? |
|
@jennybc oh yeah, CRAN only. |
Fixes #2066
@jennybc please kick the tires on this.