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
Support wildcard in filenames #2096
Support wildcard in filenames #2096
Conversation
We can't move the logic to processor because we'd have to duplicate the logic in both RunTestsArgProcessor and ListTestsArgProcessor.
|
I thought this was handled by the test source argument processor ? |
If there is no test source given and only /listtests:"abc.dll" this will be handled only by the listtests arg processor and test source arg processor will not be involved. |
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.
// Print all test containers. | ||
Output.WriteLine(string.Empty, OutputLevel.Information); | ||
Output.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestSourcesDiscovered, CommandLineOptions.Instance.Sources.Count()), OutputLevel.Information); | ||
if (verbosityLevel == Verbosity.Detailed) |
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.
nit: use this with instance variables. #Resolved
Description
Support wildcard in filenames.
Wildcard character support using Microsoft.Extensions.FileSystemGlobbing
Usage
Wildcard supported: *(represent zero to many characters), **(to represent arbitrary directory depth)
Example:
vstest.console.exe /path/to/project/tests/**.Tests/**/*.Tests.dll
We will also show the number of files matched with given pattern by default.
With detailed verbosity, the list of files will also be shown on the console
File matching verified on windows and linux.
Also, help text has been updated to incorporate the change
Related issue
#1663