vendredi 20 mars 2015

Can I not to count some method in total Unit Test TestMethod time output?

I have a unit TestClass with several TestMethods in it (all of them are counting db procedure perfomance). Some method includes a large and heavy preparation part. Such as it's longer than method itself. Can I somehow make vs to not include it's time into total timeout of whole unittest method?


I try to use method with ClassInitialize attribute, but:



  1. It brokes with ThreadAbortException, saying "Thread was being aborted".

  2. As I Understand it's time is added to time of first test method.


Aucun commentaire:

Enregistrer un commentaire