mstest

How to run a list of tests with VsTest.Console

£可爱£侵袭症+ 提交于 2021-01-21 07:46:14
问题 How can I run a list of tests using vstest.console.exe? The .vsmdi format offered a way to specify test lists, but that format is deprecated(?). I can run an explicit list of tests on the command line, which essentially does exactly what I want, but if the number if tests is large (say a few hundred) then I will run out of command line space! vstest.console MyTests.dll /Tests:Test1,Test2 Is there no way that I can trick vstest.console.exe into running a list of tests defined in any other way?