gpt4 book ai didi

mbunit - 将 Gallio/Mbunit 与 TFS 2010 Team Build 结合使用

转载 作者:行者123 更新时间:2023-12-02 06:44:23 25 4
gpt4 key购买 nike

如何配置 Team Build 2010 build process template通过 Gallio 运行 MbUnit 测试?

最佳答案

我设法通过基于默认值创建新的构建过程模板来使其正常工作。然后,我向下滚动到该部分以查找 MSTest 事件,并将其替换为名为 Gallio.Echo.exe 的 InvokeProcess 事件

这可以正常运行 Gallio,但测试结果不会集成到构建报告中。

获取要集成的结果似乎与能够导入“trx”文件有关。对此的支持正在调查中(请参阅 thread in Gallio-Dev discussion group )

以下是我用来替换现有 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(&quot; &quot;, From q In testAssemblies Select &quot;&quot;&quot;&quot; &amp; q &amp; &quot;&quot;&quot;&quot;)]" 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>

在此示例中,我假设 Gallio.Echo.exe 测试运行程序的副本位于源代码控制树中。

关于mbunit - 将 Gallio/Mbunit 与 TFS 2010 Team Build 结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2491173/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com