[Test][Category("DoNotRunOnBuildServer")]
public void ReadFromLocalWebServiceTest()
{
var qdbBrandHttpReader = new QdbBrandHttpReader();
string xml = qdbBrandHttpReader.ReadFromLocalWebService();
...
}
On your build server, when you invoke NUnit console add the option "/exclude:DoNotRunOnBuildServer", then it will not even try to run these tests.Typically this is used with a category like "LongRunningTests" to prevent tests from running on your local box.
No comments:
Post a Comment