.net core 显示单个测试运行时间的dotnet测试命令?

.net core 显示单个测试运行时间的dotnet测试命令?,.net-core,mstest,.net Core,Mstest,我正在从javascript Mocha切换到带有.NET Core 3.x的MSTest框架 当前运行的dotnet测试显示: 已通过!-失败:0,通过:6,跳过:0,总计:6,持续时间:521毫秒 有没有办法让它展示得像摩卡咖啡 TestClass1 TestMethod1 (51ms) TestMethod2 (100ms) TestMethod3 (24ms) TestClass2 TestMethod1 (115ms) TestMethod2 (55ms) 您可

我正在从javascript Mocha切换到带有.NET Core 3.x的MSTest框架

当前运行的
dotnet测试
显示:

已通过!-失败:0,通过:6,跳过:0,总计:6,持续时间:521毫秒

有没有办法让它展示得像摩卡咖啡

TestClass1
  TestMethod1 (51ms)
  TestMethod2 (100ms)
  TestMethod3 (24ms)

TestClass2
  TestMethod1 (115ms)
  TestMethod2 (55ms)

您可以尝试以下方法以获得类似的输出

dotnet test -l "console;verbosity=detailed"

您可以尝试以下方法以获得类似的输出

dotnet test -l "console;verbosity=detailed"

非常好,谢谢!不知道我可以将控制台中的参数传递给logger。工作正常,谢谢!不知道我可以在控制台中传递给logger参数。