jeudi 20 août 2020

NUnit custom Timeout Attribute

I am trying to implement my own version of the Timeout attribute because I need to run TearDown if the set test time expires However, I could not figure out how to get from Context or Command what is being executed-the test method or SetUp (I also wanted to ignore its execution) Are there any possibilities to implement a custom version of Timeout that would only take into account the test itself without the SetUp and TearDown methods?

Aucun commentaire:

Enregistrer un commentaire