Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run tests in a playlist file from mstest command line

Is there a way I can use the playlist file to run tests from commandline using MSTest.exe? I tried using following command line but it fails with and error -

mstest.exe /testmetadata:test.playlist
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

my playlist file just contains couple of XML elements

<Playlist Version="1.0">
  <Add Test="MyTest" />
  <Add Test="AnotherTest" />
</Playlist>
like image 906
Unmesh Kondolikar Avatar asked Jan 15 '14 03:01

Unmesh Kondolikar


1 Answers

mstest.exe has been deprecated. For Visual Studio 2012 SP1 and above we use vstest.console.exe. It still won't run your playlist file. There is a feature request open with Microsoft.

We're in a bad state right now with test lists also deprecated. The only way I can see to discriminate between different tests is to use Test Categories

Another option would be to switch to a different unit testing framework.

I wish there were a better answer.

like image 195
Nate Zaugg Avatar answered Oct 13 '22 02:10

Nate Zaugg