在TeamBuild服务器上运行MSTEST.exe/publish,先决条件是什么? [英] Running MSTEST.exe /publish on a TeamBuild server, what are the prerequisites?

查看:145
本文介绍了在TeamBuild服务器上运行MSTEST.exe/publish,先决条件是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类似于如何在不使用VS的持续集成中使用MsTest ?,我想在TeamBuild服务器上运行mstest.exe.

Similarly to How to use MsTest in Continuous Integration without VS?, I want to run mstest.exe on a TeamBuild server.

我的上下文是在MSBuild中捕获错误状态-即,我只是想使用mstest.exe/publish将结果上传到TFS存储库中.因此, http://www.shunra.com/shunrablog/index.php/2009/04/23/running-mstest-without-visual-studio/(您希望)可能会过大,尤其是MSTEST.exe,如 http://social.msdn.microsoft.com/Forums/zh-CN/tfsgeneral/thread/e4575890-8f88-413c-a7f3-0d09d3b9cb01 建议我要做的就是安装Team Explorer.

My context is Trapping Error Status in MSBuild - i.e., I'm only trying to use mstest.exe /publish to upload the results in to the TFS repository. Thus the full rigmarole in http://www.shunra.com/shunrablog/index.php/2009/04/23/running-mstest-without-visual-studio/ is (you'd hope) likely to be overkill, esp as MSTEST.exe, as covered in http://social.msdn.microsoft.com/Forums/en-US/tfsgeneral/thread/e4575890-8f88-413c-a7f3-0d09d3b9cb01 suggests all I need to do is install Team Explorer.

我已经安装了VS2008 Team Explorer SP1和mstest.exe/?仍然没有告诉我有关发布选项的信息.

I've installed VS2008 Team Explorer SP1, and mstest.exe /? still isnt telling me about the publish options.

回想一下,它说mstest.exe仅需要 Team Explorer .用于发布:

Recall that it says only Team Explorer is required of mstest.exe /? for publishing:

如果安装了Team Explorer,以下选项也可用:

The following options are also available if Team Explorer is installed:

/publish:[服务器名称]将结果发布到Team Foundation 服务器.

/publish:[server name] Publish results to the Team Foundation Server.

/publishbuild:[内部版本名称]用于发布的内部版本标识符 测试结果.

/publishbuild:[build name] The build identifier to be used to publish test results.

/publishresultsfile:[文件名]测试结果文件的名称 发布.如果未指定,请使用 当前测试运行产生的文件.

/publishresultsfile:[file name] The name of the test results file to publish. If none is specified, use the file produced by the current test run.

/teamproject:[团队项目名称] 建立属于.发布时指定 测试结果.

/teamproject:[team project name] The name of the team project to which the build belongs. Specify this when publishing test results.

/platform:[platform]构建所针对的平台 发布测试结果.

/platform:[platform] The platform of the build against which to publish test results.

/flavor:[flavor]构建所针对的风格 发布测试结果.

/flavor:[flavor] The flavor of the build against which to publish test results.

我要沿着procmon.exe路径找出丢失的内容,但理想情况下,知道的人会介入并回答:-

I'm going down the procmon.exe path to figure out what's missing, but ideally someone in the know would step in and answer:-

mstest.exe/publish应该只需要如上所述的Team Explorer,还是需要VSTT和Team Explorer?

Should mstest.exe /publish only require Team Explorer as stated, or does it require VSTT and Team Explorer?

推荐答案

MSTest.exe的/publish选项会进行许可证检查,以确保安装了Visual Studio的团队"版本(即Developer或Test版本).在发布部分代码之前.

The /publish option of MSTest.exe does a license check to ensure that a "Team" version of Visual Studio is installed (i.e. the Developer or Test edition) before it does the publish part of the code.

似乎已经引入了此限制,以允许在Visual Studio标准版本中使用基本的单元测试功能,但要求您拥有Visual Studio较昂贵的Team版本之一,才能在测试中启用与团队"相关的功能-例如以便将您的测试结果发布到TFS.

This restriction appears to have been introduced to allow the basic unit testing capabilities in standard versions of Visual Studio but requires you to have one of the more expensive Team editions of Visual Studio to enable the "Team" related features in testing - such as to publish your test results to TFS.

如果您没有安装带有Team Epxlorer的Visual Studio团队版,则总共缺少3个功能.

In total there are 3 missing features if you do not have a Team edition of Visual Studio with Team Epxlorer installed.

  • 发布到TFS
  • 代码覆盖率
  • 连接到远程代理.

如果安装了Development Edition,那么您将获得发布和代码覆盖,但没有远程代理代理功能(即用于进行负载分配).

If you have the Development Edition installed then you get publish and codecoverage but not the remote agent agent capabilities (i.e. for doing Load lesting).

测试版和Visual Studio Team Suite具备了所有功能.

The Test Edition and Visual Studio Team Suite have everything.

如果您想查看一个使用MSTest.exe从构建服务器发布单元测试数据(在本示例中为JUnit测试数据)的自定义MSBuild任务的示例,请查看 Teamprise Build Extensions .这些文件的源代码在允许的 MS-PL 开放下提供.源许可证.

If you would like to see an example of a custom MSBuild task that uses MSTest.exe to publish unit test data from a build server (in this example JUnit test data), then take a look at the Teamprise Build Extensions that I wrote. The source code for these is available under the permissive MS-PL open source license.

这篇关于在TeamBuild服务器上运行MSTEST.exe/publish,先决条件是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆