Skip to content

Instantly share code, notes, and snippets.

@marcel-valdez
Created June 26, 2012 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcel-valdez/2994278 to your computer and use it in GitHub Desktop.
Save marcel-valdez/2994278 to your computer and use it in GitHub Desktop.
Coverage target for msbuild
<Target Name="Coverage" >
<Exec Command=".\tools\OpenCover\OpenCover.Console.exe -register:user -target:.\tools\nunit\bin\nunit-console.exe &quot;-targetdir:MyTestProjectDir\bin\$(Configuration)&quot; &quot;-targetargs:MyTestAssembly.Test.dll&quot; -output:OpenCoverReport.xml &quot;-filter:+[MyProjectNamespace*]* -[MyProjectNamespace.Test*]*&quot;" />
<Exec Command=".\tools\reportgenerator\ReportGenerator.exe -reports:OpenCoverReport.xml -targetdir:.\coverage-report -reporttypes:XML;HTML" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment