Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vstest to honor nologo input from dotnet.exe #1717

Merged
merged 1 commit into from
Aug 3, 2018
Merged

vstest to honor nologo input from dotnet.exe #1717

merged 1 commit into from
Aug 3, 2018

Conversation

mayankbansal018
Copy link
Contributor

@mayankbansal018 mayankbansal018 commented Aug 3, 2018

Description

VSTest should honor /nologo user input from dotnet cli.
However we are not exposing it as first class argument for vstest.console CLI

dotnet/cli repo dotnet/cli#9791

Related issue

Fixes #1701.

@@ -93,7 +93,16 @@ internal int Execute(params string[] args)
{
this.testPlatformEventSource.VsTestConsoleStart();

this.PrintSplashScreen();
// If User specifies --nologo via dotnet, donot print splat screen
if (args != null && args.Length !=0 && args.Contains("--nologo"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this logic to function.

Copy link
Contributor

Choose a reason for hiding this comment

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

Case insensitive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we are controlling this argument, can make case insensitive, but didn't need it now

@@ -87,6 +88,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<Message Text="VSTestCollect = $(VSTestCollect)" Importance="low" />
<Message Text="VSTestBlame = $(VSTestBlame)" Importance="low" />
<Message Text="VSTestTraceDataCollectorDirectoryPath = $(TraceDataCollectorDirectoryPath)" Importance="low" />
<Message Text="VSTestNoLogo = $(VSTestNoLogo)" Importance="low" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Create corresponding PR in dotnet cli repo.

@@ -93,7 +93,16 @@ internal int Execute(params string[] args)
{
this.testPlatformEventSource.VsTestConsoleStart();

this.PrintSplashScreen();
// If User specifies --nologo via dotnet, donot print splat screen
if (args != null && args.Length !=0 && args.Contains("--nologo"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we support /nologo? Reference https://msdn.microsoft.com/en-us/library/ms164311.aspx

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we are not supporting this as first class argument yet, only if it comes from dotnet cli, & from dotnet cli it will always come as --nologo. I don't want to add additional checks for something we are not supporting

@mayankbansal018 mayankbansal018 merged commit 46cb498 into microsoft:master Aug 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants