¿Cómo se configura un Team Build 2010 build process template para ejecutar pruebas de MbUnit a través de Gallio?Uso de Gallio/Mbunit con TFS 2010 Team Build
Respuesta
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(" ", 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>
En este ejemplo, supongo que una copia de la Gallio.Echo .exe test runner está ubicado dentro del árbol de control de fuente.
- 1. TFS 2010 Team Build: cambie el nombre de un archivo
- 2. ¿Es Team Build 2012 compatible con Team Foundation Server 2010?
- 3. ¿Cómo se ejecutan las pruebas web durante un Team Build (para TFS 2010)?
- 4. ASP de "compilación" clásica con TFS 2010
- 5. Team Foundation Server "Build Controller"
- 6. TeamCity vs Team Build
- 7. Team Build ahora Painfully Slow
- 8. Visual Studio 2010 Team Explorer
- 9. CustomizableOutDir = true rompe MSTest.exe durante Team Build
- 10. Problemas con la ruta larga en TFS Team Build cuando CreatePackageOnPublish se establece en verdadero.
- 11. Cómo implementar proyectos de servicio de Windows con Team Build 2010
- 12. Número de compilación de Team Build y $ (Rev: .r)
- 13. Autenticación en TFS 2010
- 14. Team Build, montaje en modo SGen & Mixed
- 15. Acceso remoto a Team Foundation Server 2010
- 16. Excepto pruebas de tfs build
- 17. ¿Se puede actualizar automáticamente la versión de ensamblaje con cada TFS 2010 Build?
- 18. Cómo compilar un proyecto MakeFile de VS2010 (vcxproj) con TFS Build (No VS 2010)
- 19. Cómo: implementar SQL Database Project utilizando Team System Build 2010 (beta 2)
- 20. Cómo agregar nuevos usuarios a TFS 2010
- 21. TFS 2010 API Recursos
- 22. Configurar permisos de usuario para Team Foundation Server 2010
- 23. Migre TFS local al Servicio Team Foundation
- 24. Averigüe quién realizó cambios en VS 2010 con TFS
- 25. Uso de SVNBridge con TFS (no CodePlex)
- 26. Despliegue automático TFS 2010
- 27. Programatically find TFS changes since last build
- 28. Nuevas características de TFS 2010
- 29. ¿Hay algún enlace precompromiso en Team Foundation Server 2010?
- 30. Fail TFS Build on Single Unit Test Failure
Si puede encontrar más información al respecto, agréguelo aquí. Me encanta MbUnit/Gallio, pero MSFT tiene una gran cantidad de recursos. –