TFS手动Mstest发布结果?
在 MSDN 网页之后,我尝试在 tfsbuild.proj 中手动运行 mstest,并将结果放入通过/失败逻辑中,以便如果此特定测试失败,构建将会失败。这有点像从 CMD 运行 FxCop 或其他东西并捕获“0”或“1”并强制使构建失败。
MSTest /testcontainer:test.dll /publish:http://ourtfsmachine:8080 /teamproject:项目名称 /publishbuild:BuildNumber01 / platform:AnyCpu /flavor:Release
我可以理解在 Exec 任务中运行它,但我不知道 BuildNumber 是什么。
帮助?
Following a MSDN web page, I am trying to manually run mstest within my tfsbuild.proj and put the results into the pass/fail logic so the build will fail if this particular test fails. It's kind of like running a FxCop or something else from CMD and capturing a "0" or "1" and force-fail the build.
MSTest /testcontainer:test.dll /publish:http://ourtfsmachine:8080 /teamproject:ProjectName /publishbuild:BuildNumber01 /platform:AnyCpu /flavor:Release
I could understand running this inside an Exec task, butI don't know what the BuildNumber is, for example.
Help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 http://msdn 获取内部版本号的说明.microsoft.com/en-us/library/ms243151%28VS.100%29.aspx:
Instructions for getting the Build Number from http://msdn.microsoft.com/en-us/library/ms243151%28VS.100%29.aspx: