Domanda

Attualmente sto usando il corridore sln2008. C'è un modo per configurare TeamCity di eseguire test MSpec senza passare a un corridore NAnt o MSBuild?

È stato utile?

Soluzione

Non ho mai fatto, ma probabilmente si potrebbe aggiungere un post costruire compito Exec che appena sborsato per mspec.exe. Basta buttare il codice mia risposta linkato sopra ( Come integrare MSpec con MS costruire ? ) nelle specifiche csproj e aggiungere DependsOnTargets = "RunSpecs" al vostro obiettivo 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>

Altri suggerimenti

È possibile utilizzare msbuild corridore. Consulta Come integrare MSpec con MS Costruire? per la descrizione di come per integrare msbuild e mspec

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top