Skip to content
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

Easy way to check test invariants #1674

Closed
hadley opened this issue Aug 29, 2022 · 1 comment · Fixed by #1816
Closed

Easy way to check test invariants #1674

hadley opened this issue Aug 29, 2022 · 1 comment · Fixed by #1816
Labels
feature a feature request or enhancement fixtures 🏭
Milestone

Comments

@hadley
Copy link
Member

hadley commented Aug 29, 2022

If you accidentally affect global state in one test (e.g. working directory, options) it can be very hard to later figure out where the problem is. It'd be cool if you could somehow register a function that testtat would call before and after each test, and then report if the objects were different.

@hadley hadley added feature a feature request or enhancement fixtures 🏭 labels Sep 19, 2022
@hadley
Copy link
Member Author

hadley commented May 17, 2023

What renv does: rstudio/renv#1269

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement fixtures 🏭
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant