Update vignette advice for migrating to {testthat} 3e #2080
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have recently been working on migrating some packages from {testthat} 2e to 3e. This PR updates a few places in the vignettes where I got confused.
First is the behavior of
expect_equal(ignore_attr = TRUE)
. From what I can decipher from the history, this initially ignored the attributenames
. However, now it appears to ignore all attributes just likeexpect_equivalent()
. I'm not sure exactly when this change occurred since this functionality was migrated to {waldo}.xref: #1241, #1422, r-lib/waldo#97
Second is the advice for interactive debugging when the tests are configured to run in parallel. I wasn't able to use
browser()
withCheckReporter
because it still ran the tests in parallel. I was able to usebrowser()
with theDebugReporter
.