Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to conditionally exclude a test?
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Test et débogage
Titre:
Is there a way to conditionally exclude a test?
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01567786
Message ID:
01567786
Vues:
64
Hi everybody,

I have lots of unit tests. I have all of them passing OK except for two. The problem right now is that we create a cached copy of the preference table. In my tests I change that preference table to be able to test two separate scenarios. So, when I ran each test individually, it passes OK, but then I ran both of them at the same time one passes and the other fails because it reads cached version of the preferences table.

We're going to add a new method to be able to re-set preferences and get fresh copy from the server, but until then, is there a way to exclude one test from running when running All Tests without placing it in #if false #endif ?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform