[英]How do i specify Visual Studio test runner in tfs build script
I have used Microsoft shims in my project for writing unit tests. 我在项目中使用Microsoft垫片来编写单元测试。 These tests run fine on my local machine, however when build on server the tests fail as the ms test runner does not support shims. 这些测试在我的本地计算机上运行良好,但是在服务器上构建时,测试失败,因为ms测试运行器不支持填充。 After searching alot i found that i have to specify vs test runner to run test but it can be specified only in default template. 经过大量搜索后,我发现我必须指定vs测试运行程序来运行测试,但只能在默认模板中指定它。 Is there any way to specify the test runner in build script file. 有什么方法可以在构建脚本文件中指定测试运行器。 I am using TFS 2013 on TFS server with upgrade template. 我在带有升级模板的TFS服务器上使用TFS 2013。
The Upgrade template was provided only for backward compatibility for folks that has serious customization investment in 2005/2008 builds. 升级模板仅用于向后兼容,以供在2005/2008版本中进行了大量自定义投资的人员使用。 I would not expect new functionality to work in legacy builds without serious rework and effort. 我不希望新的功能在没有认真的修改和努力的情况下就可以在旧版本中使用。
I would suggest that there will likely be less effort in moving your build to the modern build templates and gain access to new features effortlessly. 我建议,将构建移动到现代构建模板并毫不费力地访问新功能的工作可能会更少。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.