Dav*_*ner 6 mbunit gallio team-build tfs2010
如何配置Team Build 2010 构建过程模板以通过Gallio运行MbUnit测试?
我设法通过基于默认创建新的构建过程模板来实现此目的.然后我向下滚动到该部分以查找MSTest活动,并将其替换为名为Gallio.Echo.exe的InvokeProcess活动.
这运行Gallio确定,但测试结果没有集成到构建报告中.
获得要集成的结果似乎与能够导入'trx'文件有关.正在调查对此的支持(参见Gallio-Dev讨论组中的主题)
这是我用来替换现有MSTest活动的XAML标记:
<scg:List x:TypeArguments="x:Object" Capacity="1">
<p:Sequence VirtualizedContainerService.HintSize="256,384">
<p:Sequence.Variables>
<p:Variable x:TypeArguments="x:String" Name="GallioEcho" />
</p:Sequence.Variables>
<WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</WorkflowViewStateService.ViewState>
<mtbwa:ConvertWorkspaceItem DisplayName="Convert Echo Server Path to Local Path" VirtualizedContainerService.HintSize="234,22" Input="$/MyProject/trunk/Libs/Gallio/Gallio.Echo.exe" Result="[GallioEcho]" Workspace="[Workspace]" />
<mtbwa:InvokeProcess Arguments="[String.Join(" ", From q In testAssemblies Select """" & q & """")]" DisplayName="Gallio Echo" FileName="[GallioEcho]" VirtualizedContainerService.HintSize="234,198">
<mtbwa:InvokeProcess.ErrorDataReceived>
<p:ActivityAction x:TypeArguments="x:String">
<p:ActivityAction.Argument>
<p:DelegateInArgument x:TypeArguments="x:String" Name="errOutput" />
</p:ActivityAction.Argument>
<mtbwa:WriteBuildError VirtualizedContainerService.HintSize="200,22" Message="[errOutput]" />
</p:ActivityAction>
</mtbwa:InvokeProcess.ErrorDataReceived>
<mtbwa:InvokeProcess.OutputDataReceived>
<p:ActivityAction x:TypeArguments="x:String">
<p:ActivityAction.Argument>
<p:DelegateInArgument x:TypeArguments="x:String" Name="stdOutput" />
</p:ActivityAction.Argument>
<mtbwa:WriteBuildMessage VirtualizedContainerService.HintSize="200,22" Message="[stdOutput]" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" />
</p:ActivityAction>
</mtbwa:InvokeProcess.OutputDataReceived>
</mtbwa:InvokeProcess>
</p:Sequence>
</scg:List>
Run Code Online (Sandbox Code Playgroud)
在此示例中,我假设Gallio.Echo.exe测试运行器的副本位于源控件树中.
| 归档时间: |
|
| 查看次数: |
1218 次 |
| 最近记录: |