如何使用自定义记录器进行vs测试? [英] How to use custom logger for vs test?
问题描述
我正尝试根据 https://github.com/JakeGinnivan将此自定义Teamcity记录器用于VsTest /VSTest.TeamCityLogger 和 http://msdn.microsoft. com/en-us/library/vstudio/jj155796.aspx
将vstest.teamcity.logger.dll
复制到C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions
后,我可以使用命令
After copying the vstest.teamcity.logger.dll
to C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions
I have it working with the command
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" Tests.dll /logger:vstest.teamcity.logger.dll/TeamCityLogger
但是,其他用户未在该位置安装vstest.teamcity.logger.dll/
.他们确实在工作目录中有它.如何运行vstest指定精确路径?
However other users don't have vstest.teamcity.logger.dll/
installed at that location. They do have it in the working directory though. How can I run vstest specifying the precise path?
推荐答案
作为一种选择,您可以为用户提供一个方便的脚本,以便在测试运行之前将dll复制到Visual Studio文件夹中.
As an option, you can provide users with a convenient script to copy the dll into Visual Studio folder before the test run.
这篇关于如何使用自定义记录器进行vs测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!