Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
The NUnit action in Continua is a wrapper around the NUNIT3-CONSOLE command line. If you're having trouble using the NUnit action, please refer to the Command Line Reference.

Table of Contents

...

NUnit is a unit testing framework for the .NET environment. The NUnit action can be pointed to either run tests via multiple .dll files or through a .NET/NUnit project or solution.

...

NUnit

...

Image Added

NUnit

Image Removed

Name

The name that will be used to identify this action. Note that Name is auto-populated with the file names that are entered in the Files property.

...

When NUnit executes, the output will be stored in this file. Even when specifying multiple files to test, all of the output it put into a single file. [--result]

The output file specified is relative to the agent's workspace so to reference the output directory of the workspace, you only need Output\ (not $Workspace$\Output). However you can still specify an absolute file location such as C:\myOutputFile.xml and the NUnit action will generate the output file in the correct location.

...

When Project Configuration has a value it will run the NUnit tests from either a Visual Studio or NUnit project rather then .dlls. This value tells NUnit which configuration should be used running the project (ie. Debug, Release, etc). This property must be given a value when you are running NUnit against projects. [--config]

Test Fixture

Test Fixture allows you to specify a specific test fixture to execute. You must specify the full name of the test fixture along with the containing assembly. [--test]

For example: Tests.MyTests myProject.tests.dll.

...

Specify which version of the .NET framework should be used when running the NUnit action. [--framework]

Using

The Using drop down is populated with any property collector whose namespace matches the pattern defined by the NUnit Actionaction. The pattern for this action is ^NUnit.*

...

If this is ticked, it continues with warning if any of the test assemblies are missing or invalid.


NuGet

Image RemovedImage Added

Install NUnit To

...

The Using drop down is populated by any property collector properties whose namespace matches the pattern defined by the NuGet Actionaction. The pattern for this action is  ^NuGet\..* . The default property collector searches the environment path for "NuGet.exe".  

...

Alternatively, you can select the Custom option from the Using drop down list and specify a path in the resulting input field that will be displayed. Please read Why it's a good idea to use a property collector before using this option.


Options

Image RemovedImage Added

Additional Command Line Options

...

If this is ticked, any warnings logged will not mark the action with a warning status.


Environment

Image AddedImage Removed

Environment Variables

Multiple environment variables can be defined - one per line. These are set before the command line is run.

...

Mask sensitive variable values in system environment variables

Visible This checkbox is visible only if the 'Generate system environment variables' checkbox is ticked.

...