简体   繁体   English

如何在tfs构建脚本中指定Visual Studio测试运行程序

[英]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.

相关问题 如何为自定义 NUnit Test Runner 指定测试超时? - How do I specify test timeout for custom NUnit Test Runner? 如何在Serenity测试中指定测试跑步者? - How do I specify test runner in Serenity tests? 如何在TFS生成期间在测试运行器中明确排除程序集 - How to explicitly exclude assemblies in test runner during TFS Build 测试挂起时如何停止 Visual Studio 测试运行程序 - How can I stop the Visual Studio Test Runner when a test hangs 如何在 Azure Devops Visual Studio 测试任务的构建 output 文件夹中执行我的 Visual Test 项目 - How do I execute my Visual Test project in the build output folder for Azure Devops Visual Studio Test task visual Studio团队服务构建-如何为Sql Server测试项目指定不同的连接字符串 - visual studio team services build - How to specify different connection string for a Sql Server Test Project 如何在Visual Studio Test Runner中排除某些测试? - How to exclude certain tests in the Visual Studio Test Runner? 如何在Visual Studio测试项目中测试“错误” - How do I test an “error” in Visual Studio Test Project 如何在TFS 2010的Build-Deploy-Test构建中运行许多单元测试? - How do I run many unit tests in Build-Deploy-Test build in TFS 2010? VS Test Runner在Visual Studio Online上运行缓慢 - VS Test Runner is slow on Visual Studio Online
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM