Skip to content

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

@ReubenFrankel

Description

@ReubenFrankel

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions