2010-03-22 8 views

Respuesta

5

Me las arreglé para hacer que esto funcione al crear una nueva plantilla de proceso de compilación basada en el valor predeterminado. Luego me desplacé a la sección para encontrar las actividades de MSTest y las reemplacé por una actividad de InvokeProcess llamada Gallio.Echo.exe

Esto funciona bien con Gallio, pero los resultados de la prueba no se integran en el informe de compilación.

Obtener los resultados para integrar parece relacionarse con la posibilidad de importar un archivo 'trx'. está siendo investigado apoyo a esta (ver thread in Gallio-Dev discussion group)

Aquí es el marcado XAML que he usado para reemplazar la actividad MSTest existente:

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

En este ejemplo, supongo que una copia de la Gallio.Echo .exe test runner está ubicado dentro del árbol de control de fuente.

Cuestiones relacionadas