jeudi 20 août 2020

Xcode test : clean up code, even when stopped

I am running some xcode test (with XCTest/XCUITest).

I need some clean up to be performed at the end of each test, even when the test is stopped manually (via the square stop button in xcode).

Unfortunately in that case, the tearDownWithError is not called.

How can I write a piece of code that I am guaranteed will always run, even when the test is manually stopped?

Aucun commentaire:

Enregistrer un commentaire