如何启用vstest.console.exe日志记录? [英] How to enable vstest.console.exe logging?

查看:99
本文介绍了如何启用vstest.console.exe日志记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图查看在Visual Studio 2013中运行测试时确切执行了vstest命令.如何启用vstest.console.exe日志记录?

I am trying to see what exactly vstest command is executed when I run tests in Visual Studio 2013. How can I enable vstest.console.exe logging?

推荐答案

执行的命令将是带有相关参数的VSTest.Console.exe. 当您运行测试时,Visual Studio可能会为您调用此代码:

The command executed would be VSTest.Console.exe with the relevant parameters. Likely Visual Studio is calling this for you when you run tests:

VSTest.Console.exe [Path\NameOf.dll] /Logger:trx

要检查VSTest是否真正具有记录器,请执行以下操作:

To check if VSTest actually has a logger:

VSTest.Console.exe /ListLoggers

为VSTest编写自己的记录器

有关调用VSTest.Console.exe的更多信息

这篇关于如何启用vstest.console.exe日志记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆