Skip to content

Instantly share code, notes, and snippets.

@marcusoftnet
Last active December 11, 2015 20:19
Show Gist options
  • Save marcusoftnet/4654873 to your computer and use it in GitHub Desktop.
Save marcusoftnet/4654873 to your computer and use it in GitHub Desktop.
Example file running Pickles via MsBuild
<Project
DefaultTargets="documentSpecs"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)\pickles\msbuild\PicklesDoc.Pickles.MSBuild.Tasks.dll" TaskName="Pickles" />
<PropertyGroup>
<!-- See here for arguments: https://github.com/picklesdoc/pickles/wiki/Arguments -->
<FeatureDirectory>$(MSBuildProjectDirectory)\Specs</FeatureDirectory>
<OutputDirectory>$(MSBuildProjectDirectory)\MSBuildOutput</OutputDirectory>
<SystemUnderTestName>Tradera Awesome</SystemUnderTestName>
<SystemUnderTestVersion>2.4.2.1</SystemUnderTestVersion>
<ResultsFormat>nunit</ResultsFormat> <!-- mstest -->
<ResultsFile>$(MSBuildProjectDirectory)\Specs\bin\Debug\TestResult.xml</ResultsFile>
<DocumentationFormat>html</DocumentationFormat> <!-- json, word, dita-->
</PropertyGroup>
<Target Name="documentSpecs">
<MakeDir Directories="$(OutputDirectory)" />
<Pickles FeatureDirectory="$(FeatureDirectory)"
OutputDirectory="$(OutputDirectory)"
ResultsFormat="$(ResultsFormat)"
ResultsFile="$(ResultsFile)"
SystemUnderTestName="$(SystemUnderTestName)"
SystemUnderTestVersion="$(SystemUnderTestVersion)"
DocumentationFormat="$(DocumentationFormat)"/>
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment