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

Support wildcards in filenames for vstest.console.exe #1663

Closed
nphmuller opened this issue Jun 29, 2018 · 6 comments
Closed

Support wildcards in filenames for vstest.console.exe #1663

nphmuller opened this issue Jun 29, 2018 · 6 comments
Assignees

Comments

@nphmuller
Copy link

Description

I'm using dotnet cli extensively and (almost) all commands have wildcard support. (dotnet restore, build, test, etc). It would be great to be able to do
vstest.console.exe /path/to/project/tests/**.Tests/**/*.Tests.dll.
Or in my case dotnet vstest /path/to/project/tests/**.Tests/**/*.Tests.dll.

@pvlakshm
Copy link
Contributor

Indeed, if we were to support wildcards in filenames, it will need to be supported uniformly by vstest.console.exe, dotnet test, and dotnet vstest.

@acesiddhu
Copy link
Contributor

@vagisha-nidhi is this done. I see that there was a PR above that was merged with this support

@vagisha-nidhi
Copy link
Contributor

@acesiddhu Yes this is complete

@nphmuller
Copy link
Author

@vagisha-nidhi Do you perhaps now in which version this improvement has been included?

@vagisha-nidhi
Copy link
Contributor

@nphmuller Here is the latest version that is released https://github.com/microsoft/vstest/releases/tag/v16.3.0-preview-20190808-03

@saurabhporwal28
Copy link

saurabhporwal28 commented Dec 4, 2019

I'm working on creating a differential build for our Monolithic solution and so don't want to run all the test files on every build and run only those which have been impacted. I've the logic for differential pieces and I'm thinking of using VSTest.Console.exe to run those test files and so would need to include wildcards in the path as well as file names. I tried doing that on my Visual Studio Command prompt but that does not look like takes wildcards and I get the error that the test Source file provided was not found. So, how do I get this version running on my local as well as on the Azure Build Pipelines which will take the wildcards in the filepaths and filenames. Thanks
I will try to get the Microsoft.NET.Test.Sdk 16.4.0 nuget package and then try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants