Pregunta

Actualmente estoy usando el corredor sln2008. ¿Hay una manera de TeamCity configurar para ejecutar pruebas MSpec sin cambiar a una de NAnt o MSBuild corredor?

¿Fue útil?

Solución

Yo nunca lo he hecho, pero probablemente podría añadir un puesto de acumulación de tareas Exec que solo pagó a mspec.exe. Acaba de lanzar el código de mi respuesta ligado anteriormente ( Cómo integrar MSpec con MS Construir ? ) en sus especificaciones csproj y añadir DependsOnTargets = "RunSpecs" a su objetivo AfterBuild:

  <Target Name="RunSpecs">
    <PropertyGroup>
      <MSpecCommand>
        lib\machine\specifications\Machine.Specifications.ConsoleRunner.exe $(AdditionalSettings) path\to\your\project\bin\Debug\Your.Project.Specs.dll path\to\your\other\project\bin\Debug\Your.Other.Project.dll 
      </MSpecCommand>
    </PropertyGroup>
    <Message Importance="high" Text="Running Specs with this command: $(MSpecCommand)"/>
    <Exec Command="$(MSpecCommand)" />
  </Target>
  <Target Name="AfterBuild" DependsOnTargets="RunSpecs">
  </Target>

Otros consejos

Es posible utilizar corredor msbuild. Por favor, vea Cómo integrar MSpec con MS Construir? para la descripción de cómo integrar msbuild y mspec

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top