How to use custom logger for vs test?

跟風遠走 提交于 2019-12-11 03:53:09

问题


I'm trying to use this custom Teamcity logger for VsTest per https://github.com/JakeGinnivan/VSTest.TeamCityLogger and http://msdn.microsoft.com/en-us/library/vstudio/jj155796.aspx

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

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?


回答1:


As an option, you can provide users with a convenient script to copy the dll into Visual Studio folder before the test run.



来源:https://stackoverflow.com/questions/16218714/how-to-use-custom-logger-for-vs-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!