Skip to main content
The following chapter includes instructions on how to configure and run Incredibuild for Unit Tests to run in Assembly-level mode or Test-level mode with the NUnit framework. The setting that specifies the Assembly or Test level modes for NUnit is specified within the IBTestConsole command, as described below.

Supported Frameworks:

IBTestConsole supports the following frameworks:
  • NUnit 2
  • NUnit 3
  • Google Test (Gtest)
IBtestConsole will automatically detect the executed framework. However, if you want to force it to run a specific framework, you can use the /test=NUnit3 or /test=NUnit2 CLI command line options.

Running the IBTestConsole

To configure and run the IBTestConsole, you should first run the IBTestConsole.exe file, located in the Incredibuild installation folder. This is a console application that initializes Incredibuild for Unit Tests in various modes of operation, according to its various parameters. IBTestConsole uses the following syntax: IBTestConsole [command] [options]
  • Command- The original command of your Unit tests framework. The command may include specific flags (described below)
  • Options – One of the options described in the section below.

Supported Framework Command Flags

The following framework command flags are supported by Incredibuild for Unit Tests. Each framework version includes different flags as described below. To learn more about each flag, see the Nunit 3 CLI reference and Nunit2 CLI reference.

NUnit 2 Supported Flags

  • /run
  • /runlist
  • /include
  • /exclude
  • /result, /xml
  • /noresult, /noxml
  • /framework
  • /timeout

NUnit 3 Command Flags

  • @FILE
  • --testlist=FILE
  • --where=EXPRESSION
  • --config=NAME
  • --framework=FRAMEWORK
  • --timeout=MILLISECONDS
  • --seed=SEED
  • --skipnontestassemblies
  • --result=SPEC
  • --noresult
  • --shadowcopy
  • --noheader, --noh
  • --params | p=PARAMETER
  • --dispose-runners

GTest Command Flags

  • --gtest_output
  • --gtest_filter

IBTestConsole Options

The following options can be added at the end of the IBTestConsole command.

Return Codes

IBTestConsole return the following return codes: