dotnet test
  • 14 May 2021
  • 1 Minute to read
  • Dark
    Light
  • PDF

dotnet test

  • Dark
    Light
  • PDF

Article Summary

This is generated from the built in components of BuildMaster 7.0.0, and may be different than what you have installed (especially if you have extensions); go to [User Icon] -> Documentation within your BuildMaster instance to see exactly what operations are available.

dotnet test

Runs unit tests on a specified test project using the dotnet test command.

Script usage:

DotNet::Test(
	Project: <text>,
	[Configuration: <text>],
	[PackageSource: <text>],
	[Group: <text>],
	[Framework: <text>],
	[AdditionalArguments: <text>],
	[DotNetPath: <text>]
);

Arguments:

NameFormatScript UsageUsage Notes
Project path
text
Project
This must be the path to either a project file, solution file, or a directory containing a project or solution file. This argument is required.
Configuration
text
Configuration
Package source
text
PackageSource
If specified, this NuGet package source will be used to restore packages when building.
Test group
text
Group
Framework
text
Framework
Additional arguments
text
AdditionalArguments
dotnet path
text
DotNetPath
Full path of dotnet.exe (or dotnet on Linux). This is usually C:\Program Files\dotnet\dotnet.exe on Windows. If no value is supplied, the operation will default to %PROGRAMFILES%\dotnet\dotnet.exe for Windows and dotnet (from the path) on Linux.

Note: This operation requires .NET Core build tools v2.0+ to be installed on the server.


Was this article helpful?