vstest.console

vstest.console.exe ListTests with FullyQualifiedName

空扰寡人 提交于 2021-01-28 05:17:32
问题 /ListTests option of vstest is returning a list of test method names inside a dll. Is there a way to return a list of FullyQualifiedNames ? So instead of getting TestMethodName I would like to receive NamespaceName . ClassName . TestMethodName . 回答1: You can use following command: vstest.console a.dll /ListFullyQualifiedTests /ListTestsTargetPath:Tests.txt 来源: https://stackoverflow.com/questions/44569883/vstest-console-exe-listtests-with-fullyqualifiedname

VSTest.Console when run with /Logger:Console does not print debug output from test method

江枫思渺然 提交于 2019-12-12 10:46:37
问题 I am using Visual Studio 2015. I am trying to print some statements just for tracking a very long running test. When using VSTest.Console with /Logger:trx the debug output (whether we use Console.WriteLine(), Debug.Writeline() or Trace.WriteLine()) does go into the trx file which gets generated. However, when run with /Logger:Console the custom debug output does not show on the console output: only the test result shows up. I have even written my own extension by referring to: https://blogs