Skip to content

<ctrl+c> support for teardown #44

@CosmicHorrorDev

Description

@CosmicHorrorDev

Hiya! In some projects it's common to startup external resources that are used by the test suite when running cargo test although normally they rely on drop() running to tear down the resources when finished. This causes issues when killing the test suite with something like <ctrl+c> since drop doesn't actually end up running

It would be nice if there was some way of setting up or registering a resource that could be torn down even when stopping the test suite with signals

(Side note: this whole project looks really promising. Let me know if there are any ways that I could help out)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-pytestArea: pytest-like framework implemented on top of the new harnessC-enhancementCategory: Raise on the bar on expectations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions