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()
        {

        }

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.