-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[Feature request] Setup and teardown for tests #134171
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
Comments
You might want to open an issue on https://github.com/rust-lang/libtest-next instead. |
Well, sounds like something that would definitely be useful to have without adding a dependency. I'd gladly use such a feature. |
libtest-next contains experiments for a rework of the existing testing support in rustc itself. I guess you could see the libtest-next issue tracker as a list of feature requests for whatever the new implementation of testing support for rust will end up. |
AFAIK I'm going to leave this open for T-testing-devex to decide, but I think it might be closed in favor of libtest-next's issue tracker instead. |
Actually, this feature request is a duplicate of #117668. I'm going to close this in favor of the earlier request. Thank you for the request. |
Oh I see. Didn't know |
What about introducing new tests attributes for edition 2024 to allow global setup/teardown in tests ?
Something like
setup would run before all tests in its module and teardown after
The text was updated successfully, but these errors were encountered: