NUnit Runner

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

This page describes how to configure a Bamboo task to run NUnit tests, and then parse the test results.

Before you begin:

  • .NET builder tasks in Bamboo (e.g. NAnt) do not parse test information as part of the task. You must configure a test task (e.g. MSTest Parser, NUnit Parser), if you want test results from the builder task to be parsed.

To configure a NUnit Runner task:

  1. Navigate to the Tasks configuration tab for the job (this will be the default job if creating a new plan).
  2. Select the name of an existing NUnit Runner task, or select Add task > NUnit Runner to create a new task.
  3. Update the task settings:

    Task DescriptionA description of the task, which gets displayed in Bamboo.
    Disable this taskCheck, or clear, to selectively run this task.
    Add condition to taskMake task run only when a certain condition is met. 
    You can find conditions on Atlassian Marketplace or implement your own.  
    ExecutableThe NUnit Runner executable that is available to perform the task. The executable that you select will become one of the task's (and so, the job's) requirements.
    You can add other executables, if required.
    NUnit Test FilesThe name of an assembly (.dll), Visual Studio project (.csproj), or NUnit Test Suite (.nunit) to test. See http://www.nunit.org/.
    Result FilenameThe name to be used for the XML results file.
    Tests to RunThe name of the test case, test fixture or namespace to run.
    Test Categories to IncludeSpecify one or more test categories, separated by commas, to be included in the test run.
    Test Categories to ExcludeSpecify one or more test categories, separated by commas, to be excluded from the test run. Exclusions take precedence over inclusions.
    Command Line OptionsSpecify any command line options or switches you wish to include when running NUnit.
    Environment variablesAny extra environment variables you want to pass to your build. e.g. JAVA_OPTS="-Xmx256m -Xms128m".
  4. Select Save.

For more information on NUnit, see http://www.nunit.org/.

 NUnit Runner configuration

Last modified on Jul 18, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.