Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public MicrosoftTestingPlatform()
Options.Add(VerbosityOption);
Options.Add(NoRestoreOption);
Options.Add(NoBuildOption);
NoLogoOption.Aliases.Add("--no-banner");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have much knowledge in this code base, but if --no-logo, --nologo, -nologo, /nologo work without calling NoLogoOption.Aliases.Add(), why must it be called for --no-banner?

Options.Add(NoLogoOption);
Options.Add(NoDependenciesOption);
Options.Add(ArtifactsPathOption);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public void MTPCommandIncludesNoDependenciesOption()
[DataRow("--nologo")]
[DataRow("-nologo")]
[DataRow("/nologo")]
[DataRow("--no-banner")]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't options like /nobanner, -nobanner be tested as well?

public void MTPCommandTranslatesNoLogoOptionToNoBanner(string optionAlias)
{
var command = new TestCommandDefinition.MicrosoftTestingPlatform();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Options:
-v, -verbosity <LEVEL> 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]
-nologo, --no-logo Run test(s), without displaying Microsoft Testplatform banner [default: False]
-nologo, --no-banner, --no-logo Run test(s), without displaying Microsoft Testplatform banner [default: False]
--no-dependencies Do not build project-to-project references and only build the specified project. [default: False]
--artifacts-path <ARTIFACTS_DIR> The artifacts path. All output from the project, including build, publish, and pack output, will go in subfolders under the specified path.
--ucr, --use-current-runtime Use current runtime as the target runtime. [default: False]
Expand Down
Loading