Reputation: 781
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.
Upvotes: 2
Views: 761
Reputation: 781
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
Upvotes: 3