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

Include the original test name in expired stub error messages #644

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

floehopper
Copy link
Member

Based on #641 and thanks to @casperisfine.

It is currently very hard to track down such leaked stubs, when they happen, as they might be created in one test and cause an exception dozens of tests later.

By including the name of the test that invalidated them, it makes the debugging process a bit easier.

Note, I made setup also accept the current test instance purely for consistency with teardown but it's not strictly necessary.

It is currently very hard to track down such leaked stubs, when
they happen, as they might be created in one test and cause an
exception dozens of tests later.

By including the name of the test that invalidated them, it makes
the debugging process a bit easier.

Note, I made `setup` also accept the current test instance purely
for consistency with `teardown` but it's not strictly necessary.
@floehopper floehopper merged commit 9d2b88e into main Apr 10, 2024
16 checks passed
@floehopper floehopper deleted the improve-expired-error branch April 10, 2024 08:03
@floehopper
Copy link
Member Author

Released in v2.2.0

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.

None yet

2 participants