2010-03-22 21 views

Trả lời

5

Tôi đã quản lý để làm việc này bằng cách tạo mẫu quy trình xây dựng mới dựa trên mặc định. Sau đó tôi cuộn xuống phần để tìm các hoạt động MSTest, và thay thế chúng bằng một hoạt động InvokeProcess gọi là Gallio.Echo.exe

Điều này chạy Gallio ok, nhưng kết quả kiểm tra không được tích hợp vào báo cáo xây dựng.

Nhận kết quả để tích hợp dường như có liên quan đến việc có thể nhập tệp 'trx'. Hỗ trợ cho điều này đang bị điều tra (xem thread in Gallio-Dev discussion group)

Dưới đây là đánh dấu XAML mà tôi sử dụng để thay thế các hoạt động MSTest hiện:

<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> 

Trong ví dụ này, tôi cho rằng một bản sao của Gallio.Echo Á hậu thử nghiệm .exe nằm trong cây điều khiển nguồn.

Các vấn đề liên quan