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

Test cleanup #39

Open
calebwin opened this issue Sep 27, 2021 · 1 comment
Open

Test cleanup #39

calebwin opened this issue Sep 27, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@calebwin
Copy link

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?

@rfourquet
Copy link
Collaborator

I don't know a way of doing that currently. Do you have a way with the regular Test library? It's a feature I've been planning and which shouldn't be difficult to implement, but the API was no totally setlled in my mind.

@rfourquet rfourquet added the enhancement New feature or request label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants