diff --git a/src/Cli/Microsoft.DotNet.Cli.Definitions/Commands/Test/TestCommandDefinition.MicrosoftTestingPlatform.cs b/src/Cli/Microsoft.DotNet.Cli.Definitions/Commands/Test/TestCommandDefinition.MicrosoftTestingPlatform.cs index 970deefc21de..03f192adb496 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Definitions/Commands/Test/TestCommandDefinition.MicrosoftTestingPlatform.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Definitions/Commands/Test/TestCommandDefinition.MicrosoftTestingPlatform.cs @@ -124,6 +124,8 @@ public sealed class MicrosoftTestingPlatform : TestCommandDefinition, ICustomHel Description = CommandDefinitionStrings.CommandOptionNoLaunchProfileArgumentsDescription }; + public readonly Option ArtifactsPathOption = CommonOptions.CreateArtifactsPathOption(); + public const string BuildTargetName = "_MTPBuild"; public readonly Option MTPTargetOption = CommonOptions.CreateRequiredMSBuildTargetOption(BuildTargetName); @@ -150,6 +152,7 @@ public MicrosoftTestingPlatform() Options.Add(VerbosityOption); Options.Add(NoRestoreOption); Options.Add(NoBuildOption); + Options.Add(ArtifactsPathOption); Options.Add(NoAnsiOption); Options.Add(NoProgressOption); Options.Add(OutputOption); diff --git a/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt b/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt index 9e788f97f5c9..9d648d9613c1 100644 --- a/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt +++ b/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt @@ -33,6 +33,7 @@ Options: -v, -verbosity Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. --no-restore Do not restore the project before building. [default: False] --no-build Do not build the project before testing. Implies --no-restore. [default: False] + --artifacts-path The artifacts path. All output from the project, including build, publish, and pack output, will go in subfolders under the specified path. --no-ansi Disable ANSI output. [default: False] --no-progress Disable progress reporting. [default: False] --output Verbosity of test output.