简体   繁体   English

使用VS 2012项目从msbuild proj文件在TFS 2010上运行单元测试

[英]Running unit tests on TFS 2010 from msbuild proj file using VS 2012 projects

Up until a few months ago, we were compiling a 2010 sln using TFS 2010 and executed our unit tests using a vsdmi and all was well. 直到几个月前,我们使用TFS 2010编译了一个2010 sln,并使用vsdmi执行了单元测试,一切都很好。 We then upgraded to VS 2012 and configured our TFS 2010 server to compile our code using a MSBUILD proj file and TFS 2010 is no longer executing the unit tests. 然后,我们升级到VS 2012,并配置了TFS 2010服务器以使用MSBUILD proj文件编译代码,而TFS 2010不再执行单元测试。 Does anyone know what I need to do to get this working? 有谁知道我需要做些什么才能使它工作?

On Visual Studio TFS 2010, unit tests are executed with MS Test , but on 2012 they are executed with Test Runner, it's another Layer, You can personnalize your processus of build with old layer MS Test for give same results 在Visual Studio TFS 2010上,单元测试是通过MS Test执行的,但是在2012年,它们是通过Test Runner执行的,这是另一层。您可以使用旧的MS Test来个性化构建过程,以获得相同的结果

link : http://msdn.microsoft.com/en-us/library/vstudio/ms253138.aspx 链接: http//msdn.microsoft.com/en-us/library/vstudio/ms253138.aspx

Access to your Process section of Build , check Automated Test and custommize your layer in Add Edit Test Run 进入Process section of BuildProcess section of Build ,检查Automated Test并在Add Edit Test Run定义图层

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM