如何同时使用msbuild打包并在使用持续集成的TFS 2010上运行测试 [英] How to both package with msbuild and run tests on TFS 2010 using Continuous Integration
问题描述
我使用TFS2010和MSBuild将Windows Azure云解决方案集成到CI。
I am using TFS2010 and MSBuild to integrate a windows azure cloud solution to the CI.
要创建所需的2个文件进行部署,我在MSBuild Arguments / t:发布
To create the required 2 files for deployment I added in the "MSBuild Arguments" the /t:Publish
这是我在TFS中用于构建软件包的配置:
Here is the configuration I use in TFS to build the packages:
img src =https://i.stack.imgur.com/AUeOj.pngalt =TFS配置>
问题是:如果我删除所有参数测试已正确构建,但没有构建如构建结果中所示的天蓝色包:
Problem is : if I remove all arguments the tests are built correctly but no azure package is built as seen on the build results:
如果我把参数包放在那里但测试不运行:
Tho if I put the parameters the package is there but the test are not run :
有办法同时拥有两个?
推荐答案
我曾经讨论过TFS团队的问题,现在使用TFS2010这个功能还没有完全支持,但是这些功能是未来的TFS版本的一部分。
I had discussion about your problem with TFS Team and I was told that as of now with TFS2010 this functionality is not yet fully supported however such functionality is in they radar and could be part of future TFS releases.
因为你使用TFS 2010,这里有一些指针可以帮助:
Because you are using TFS 2010, here are a few pointers that could help:
这篇关于如何同时使用msbuild打包并在使用持续集成的TFS 2010上运行测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!