--wherecommand line argument is used as the priority test filtering setting. When it is used simultaneously with the NUnit categories include or/ and NUnit categories exclude fields to filter tests by category, TeamCity will ignore these options: a warning will be displayed and only the
--whereargument will be used.
- Using the parameters below in the Additional command line parameters field may cause your build to fail:
the list of assemblies to be tested, as the NUnit build step determines the list of assemblies from the NUnit project file due to the command line size limitations
NUnit project file, as TeamCity creates its own temporary NUnit project file (see below)
--work: the NUnit build step uses the build checkout directory as the base directory
--noresultis used by default
--noheaderis used by default
--x86if the .NET Runtime - Platform field is set to “x86”
--frameworkif the .NET Runtime - Version is set to something other than “auto”
--exploreif the algorithm below is used
The NUnit build step can be set to first run the tests which failed in the previous builds. The idea is that it saves time to conclude about a probable state of the finished build. If the Reduce test failure feedback time flag is set, the test are run in three steps provided that the previous build has failed tests:
As the first step, TeamCity obtains all the list of tests for assemblies taking into account filters by category (the
--exploreconsole argument is used), the statistics of the previous step run is analysed and 2 test lists are created: the priority list and the rest. The priority list includes the tests which failed in the previous build.
When the "Reduce test failure feedback time option" is set, the
Explicitattribute will not work.
- During this step the priority tests are run.
- The remaining tests follow.