Vstest: Support wildcards in filenames for vstest.console.exe

Created on 29 Jun 2018  路  6Comments  路  Source: microsoft/vstest

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.

enhancement

Most helpful comment

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

All 6 comments

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.

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

@acesiddhu Yes this is complete

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

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

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!

Was this page helpful?
0 / 5 - 0 ratings