-
Notifications
You must be signed in to change notification settings - Fork 312
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
New tool to compare global state before and after each test #1816
Conversation
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.
I'm very excited about this!
My main feedback documentation-wise is that it's not clear where testthat_state()
should be defined. Below R/
or in a test helper file?
Co-authored-by: Jennifer (Jenny) Bryan <jenny.f.bryan@gmail.com>
Does this implementation leave the door open in case someone wants to check state only in certain tests, or configure how state is checked on a test-by-test basis? |
No, because I'm mostly imagining that people will only want to turn this on occasionally during debugging, just because it's a lot of work to run down all the false positives (as we've learned in renv). |
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.
Looks great!
Fixes #1674
@lionel- could you please take a look at the implementation?
@jennybc could you please look at the docs?