Disable selected automated tests at runtime

Posted by squig on Stack Overflow See other posts from Stack Overflow or by squig
Published on 2010-04-30T04:12:28Z Indexed on 2010/04/30 4:17 UTC
Read the original article Hit count: 489

Filed under:
|
|

Is is posable to disable selected automated tests at runtime?

I'm using VSTS and rhino mocks and have some intergation tests that require an external dependancy to be installed (MQ). Not all the developers on my team have this installed.

Currently all the tests that require MQ inherit from a base class that checks if MQ is installed and if is not sets the test result to inconclusive. This works as it stops the tests from running, but marks the test run as unsuccseessful and can hide other failures.

Any ideas?

© Stack Overflow or respective owner

Related posts about c#

Related posts about automated-tests