如何使用自定义记录器进行vs测试? [英] How to use custom logger for vs test?

查看:61
本文介绍了如何使用自定义记录器进行vs测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试根据 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屋!

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