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

Make --verbosity case insensitive #2300

Merged
merged 1 commit into from
Jan 20, 2020

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Jan 9, 2020

Description

Makes --verbosity case insensitive.

Related issue

Fixes #2179

@nohwnd nohwnd requested a review from AbhitejJohn January 9, 2020 14:10
@singhsarab
Copy link
Contributor

This #2179 (comment) surprises me

@@ -247,11 +247,11 @@ private List<string> AddArgs()
var quietTestLogging = new List<string>() {"q", "quiet"};

string vsTestVerbosity = "minimal";
if (normalTestLogging.Contains(this.VSTestVerbosity))
if (normalTestLogging.Contains(this.VSTestVerbosity.ToLowerInvariant()))
Copy link
Contributor

Choose a reason for hiding this comment

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

Were only these 2 affected ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that were the only two case sensitive checks I could find in that file and falsify with tests. There is also

if (!string.IsNullOrEmpty(this.VSTestPlatform) && !this.VSTestPlatform.Contains("AnyCPU"))
but that is unrelated to the issue, and it did not look like it would easily break. We can start another issue if you think this is an improvement that should be made.

@nohwnd
Copy link
Member Author

nohwnd commented Jan 13, 2020

This #2179 (comment) surprises me

Same here, it did not work for me, and the tests show that it does not work even on windows. I could see that passing --logger:Console;Verbosity=normal as well as --logger:Console;Verbosity=Normal to the console worked. But dotnet test --verbosity Normal DID NOT due to the case-sensitive check above, because it returned the default --logger:Console;Verbosity=minimal.

Copy link
Contributor

@singhsarab singhsarab left a comment

Choose a reason for hiding this comment

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

@AbhitejJohn Should approve too.

@nohwnd nohwnd merged commit 51a2b03 into microsoft:master Jan 20, 2020
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.

Handling of --verbosity is case-sensitive
3 participants