2

The /ListTests option only outputs the methods name without their class and namespaces, this doesn't make any sense! And the documentation doesn't seem to provide any additional tools to do this.

TommyD
  • 731
  • 8
  • 14

1 Answers1

2

Apparently someones else has figured it out by looking at the source code. There is an undocumented switch that allows do to this, but it has to output to a file, because it's "internal use only" (sigh).

So anyway I got it working with this command:

vstest.console.exe bin\x64\Release\DummyProjectTests.dll /ListFullyQualifiedTests /ListTestsTargetPath:tests.txt

And indeed the content is what you would expect:

SuccessfulTests.FibonacciTests.GoodTest_1
SuccessfulTests.FibonacciTests.GoodTest_2
SuccessfulTests.FibonacciTests.GoodTest_3
SuccessfulTests.FibonacciTests.DataRowGoodTest

TommyD
  • 731
  • 8
  • 14