-
Notifications
You must be signed in to change notification settings - Fork 323
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
Use "dotnet test --verbosity" arg for console verbosity #735
Conversation
Faizan2304
commented
Apr 19, 2017
- Add support to use "dotnet test --verbosity" args for console verbosity
- Remove invalid help message
2) Remove invalid help message
@Faizan2304, |
var normalTestLogging = new List<string>() { "n", "normal", "d", "detailed", "diag", "diagnostic" }; | ||
var minimalTestLogging = new List<string>() { "m", "minimal" }; | ||
|
||
string vsTestVerbosity = "quiet"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default should be minimal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!!
if (!string.IsNullOrWhiteSpace(this.VSTestVerbosity) && | ||
(string.IsNullOrEmpty(this.VSTestLogger) || this.VSTestLogger.IndexOf("console", StringComparison.OrdinalIgnoreCase) < 0)) | ||
{ | ||
var normalTestLogging = new List<string>() { "n", "normal", "d", "detailed", "diag", "diagnostic" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add tests for each mapping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in next commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some suggestions.
@@ -181,6 +187,25 @@ internal IEnumerable<string> CreateArgument() | |||
} | |||
} | |||
|
|||
if (!string.IsNullOrWhiteSpace(this.VSTestVerbosity) && | |||
(string.IsNullOrEmpty(this.VSTestLogger) || this.VSTestLogger.IndexOf("console", StringComparison.OrdinalIgnoreCase) < 0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use this.VSTestLogger.Startwith()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in next commit.