如何从mstest命令行在播放列表文件中运行测试

Unm*_*kar 5 continuous-integration unit-testing mstest visual-studio-2012

有没有办法可以使用播放列表文件使用MSTest.exe从命令行运行测试?我尝试使用以下命令行,但它失败并且错误 -

mstest.exe /testmetadata:test.playlist
Run Code Online (Sandbox Code Playgroud)
The file 'test.playlist' has unknown format and cannot be converted to the current version.

Note that mstest version is 11.0.50727.1 and I am using VS 2012
Run Code Online (Sandbox Code Playgroud)

我的播放列表文件只包含几个XML元素

<Playlist Version="1.0">
  <Add Test="MyTest" />
  <Add Test="AnotherTest" />
</Playlist>
Run Code Online (Sandbox Code Playgroud)

Nat*_*ugg 7

mstest.exe已被弃用.对于Visual Studio 2012 SP1及更高版本,我们使用vstest.console.exe.它仍然无法运行您的playlist文件.有一个功能请求与Microsoft打开.

我们现在状态不佳,测试列表也已弃用.我可以看到区分不同测试的唯一方法是使用测试类别

另一种选择是切换到不同的单元测试框架.

我希望有更好的答案.