Interface ITest
A build which runs tests.
Inherited Members
INukeBuild.ExecutionPlan
INukeBuild.InvokedTargets
INukeBuild.SkippedTargets
INukeBuild.ScheduledTargets
INukeBuild.RunningTargets
INukeBuild.AbortedTargets
INukeBuild.FailedTargets
INukeBuild.SucceededTargets
INukeBuild.FinishedTargets
INukeBuild.IsSucceeding
INukeBuild.IsFailing
INukeBuild.IsFinished
INukeBuild.ExitCode
INukeBuild.RootDirectory
INukeBuild.TemporaryDirectory
INukeBuild.BuildAssemblyFile
INukeBuild.BuildAssemblyDirectory
INukeBuild.BuildProjectDirectory
INukeBuild.BuildProjectFile
INukeBuild.Verbosity
INukeBuild.Host
INukeBuild.Plan
INukeBuild.Help
INukeBuild.NoLogo
INukeBuild.IsLocalBuild
INukeBuild.IsServerBuild
INukeBuild.Continue
INukeBuild.Partition
Namespace: Microsoft.XboxStudios.NukeExt
Assembly: NukeExt.Components.dll
Syntax
public interface ITest : ICompile, IHasGitVersion, IRestore, IHasArtifacts, INukeBuild
Properties
View SourceTest
Gets the target to run tests.
Declaration
Target Test { get; }
Property Value
| Type | Description |
|---|---|
| Target |
TestCollect
Gets the test collector, if any.
Declaration
string? TestCollect { get; }
Property Value
| Type | Description |
|---|---|
| string |
TestFilter
Gets the test filter, if any.
Declaration
string? TestFilter { get; }
Property Value
| Type | Description |
|---|---|
| string |
TestResultDirectory
Gets the custom directory to output test results, if any.
Declaration
AbsolutePath? TestResultDirectory { get; }
Property Value
| Type | Description |
|---|---|
| AbsolutePath |
TestResultDirectoryOrDefault
Gets the directory to output test results.
Declaration
AbsolutePath TestResultDirectoryOrDefault { get; }
Property Value
| Type | Description |
|---|---|
| AbsolutePath |
TestSettings
Gets the custom test settings.
Declaration
Configure<DotNetTestSettings> TestSettings { get; }
Property Value
| Type | Description |
|---|---|
| Configure<DotNetTestSettings> |
UseMicrosoftTestingPlatform
Gets a value indicating whether to use Microsoft.Testing.Platform-compatible parameters.
Declaration
bool UseMicrosoftTestingPlatform { get; }
Property Value
| Type | Description |
|---|---|
| bool |
UseTestRunner
Gets a value indicating whether to use test runner-compatible parameters.
Declaration
bool UseTestRunner { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceRunTest(string?, string?)
Runs dotnet test.
Declaration
void RunTest(string? testCollect = null, string? testFilter = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | testCollect | The test collector. |
| string | testFilter | The test filter. |
TestSettingsBase(string?, string?)
Gets the default test settings.
Declaration
Configure<DotNetTestSettings> TestSettingsBase(string? testCollect, string? testFilter)
Parameters
| Type | Name | Description |
|---|---|---|
| string | testCollect | The test collector. |
| string | testFilter | The test filter. |
Returns
| Type | Description |
|---|---|
| Configure<DotNetTestSettings> | Configured test settings. |