Skip to content

Test cleanup #39

Open
Open
@calebwin

Description

@calebwin

I want to be able to run some cleanup code after my tests run regardless of whether they succeed or fail. I though I could just do this by wrapping my call to runtests with a try... finally... but it seems like when an error occurs, the whole thing terminates and my cleanup code never gets run.

Any suggestions on how to intercept failures like this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions