VSTest.console : using wildcards for assembly names

Hello,

Is there a way to specify filename wildcards for the Test Assemblies?

(In Team Build, the default is: *test.dll;**test*.appx)

If not, is there another way of getting a list of files, or maintaining a list of files, to have vstest run against?

Thanks!
Dave

PS there is no existing help for the "Run VSTest.Console action so I am posting my question here.

Hi Dave,

It would appears that for vstest.console each file to test has to be placed on a separate line. This is due to the vstest.console call only taking a space separated list of files to test.

With this in mind you could use a fileset to get all the files you wish to test. This would allow the use of wildcards, and some more powerful exclusion tests. Then from the fileset you could write out all the files to test into a single variable. When writing the files to a single variable be sure to include a space separator and quote all filenames (use fileset to variable action for this). Then include the variable into the list of files to perform test on in vstest.console.

Let me know how that goes for you.