jeudi 7 juillet 2016

Cleanup in Rust unittests?

What is a good way of cleaning up after a unittest in Rust? Since the test-function aborts on a failure, one cannot simply clean up at the end of the function under test.

From testing frameworks in other languages, there's usually a way to setup a callback that handles cleanup at the end of each test-function.

Aucun commentaire:

Enregistrer un commentaire