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

Pre-emptively prevent test fixtures from lingering global state #616

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

jeffwidman
Copy link
Contributor

count=2 is very effective at sniffing out global state/singletons that don't get unset properly by a test's cleanup.

We started doing this at a previous employer and discovered all sorts of tests that were leaving global singleton artifacts around and other tests had started to depend on them... it took a while to untangle, but we were very glad once we finally got through it.

`count=2` is very effective at sniffing out global state/singletons that don't get unset properly by a test's cleanup.

We started doing this at a previous employer and discovered all sorts of tests that were leaving global singleton artifacts around and other tests had started to depend on them... it took a while to untangle, but we were very glad once we finally got through it.
@ErikPelli ErikPelli merged commit fec371b into elazarl:master Jan 7, 2025
1 check passed
@jeffwidman jeffwidman deleted the patch-2 branch January 7, 2025 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants