I have a TestClass
. In my TestCleanUp
function, I want to do conditional actions depending on wether the test had failed.
I could of course wrap each test with try
-catch
and add a flag which I can later query, but I was wondering if there is something built-in to the testing framework.