TFS手动Mstest发布结果?

发布于 2024-08-12 15:26:12 字数 411 浏览 5 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一人独醉 2024-08-19 15:26:12

http://msdn 获取内部版本号的说明.microsoft.com/en-us/library/ms243151%28VS.100%29.aspx

  1. 打开 Visual Studio 并连接到 Team Foundation Server。
  2. 打开团队资源管理器。
  3. 打开您的团队项目并展开团队项目节点。
  4. 在构建下,双击“所有构建类型”或特定构建类型以查看其构建。您可以使用的构建名称位于“名称”列中。

Instructions for getting the Build Number from http://msdn.microsoft.com/en-us/library/ms243151%28VS.100%29.aspx:

  1. Open Visual Studio and connect to a Team Foundation Server.
  2. Open Team Explorer.
  3. Open your team project and expand the team project node.
  4. Under the build, double-click All Build Types or a specific build type to see its builds. Build names that you can use are in the Name column.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文