2 October, 2009
0 Comments
0 categories
Our continuous integration build server, runs all NUnit tests defined in a Microsoft Visual Studio solution file, but some NUnit tests are just created for integration testing. If you want to skip these tests you can use the NUnit attribute [Explicit]. These NUnit tests are only run when explicitly called from the nunit-console.exe command prompt. During the continuous integration build, these NUnit tests will be skipped.
[Test] [Explicit("Can't be run on build server, no IIS server on build server")] public void IisIntegrationTest() { }