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

Run test teardown methods (JUnit @AfterEach/@AfterAll) when stopped manually? #1666

Open
ReubenFrankel opened this issue Feb 16, 2024 · 1 comment

Comments

@ReubenFrankel
Copy link
Contributor

Does this extension run teardown methods when a user manually stops a test run? I think the answer is no, but thought I'd check if it was meant to first and I just had something misconfigured.

If not, should it? Coming from Eclipse, stopping a test did run the teardown logic (at least for JUnit @AfterEach and @AfterAll). I do find a lot of the time I want teardown methods to fire on a manual stop, especially for system integration tests that communicate with external services during cleanup.

@jdneo
Copy link
Member

jdneo commented Mar 4, 2024

Hi @ReubenFrankel,

AFAIK, it not supported right now. I'll check how eclipse achieves that and if we can support that as well.

Thank you for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants