-
Notifications
You must be signed in to change notification settings - Fork 764
Fix test_coverage_active_file() for testthat 3.3 #2631
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
base: main
Are you sure you want to change the base?
Fix test_coverage_active_file() for testthat 3.3 #2631
Conversation
Name `snap_dir` arg for `testthat::local_snapshotter()` in `test_coverage_active_file()` Fixes r-lib#2630
|
It's a little ironic for this not to have test coverage, but the tests here are pretty light, and it's tricky to add them. I could probably get some things in place to at least throw errors if something like this happens again if you'd like. |
|
Thank you. This has been annoying me for the past weeks. I got a local quickfix. Is there a chance to get this into the dev version quickly? |
|
Hmmm, I haven't noticed this because I haven't updated devtools for a long time 😬 |
|
Let me also fix this in testthat, since I'm about to release it. We'll still want this change because it's definitely better practice to use a named argument here. |
jennybc
left a comment
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.
This is sort of nitpicky/meta but sort of legit and I know you are resilient enough @jonthegeek to take it 😁 but can you back out the Air-ish formatting changes, so this only has the meaningful change? I think it's just the addition of snap_dir =?
(I need to do a holistic re-formatting of devtools as a whole. And it really does make it easier to see what's in this PR / what the problem is.)
I almost did this earlier today because I didn't intentionally make them (air and/or "Strip trailing horizontal whitespace when saving" did). It's a little tricky to save WITHOUT applying those things but I can work it out! |
Name
snap_dirarg fortestthat::local_snapshotter()intest_coverage_active_file()Fixes #2630