fixing buidl to only report coverage on .NET 4 build

This commit is contained in:
Steve Bohlen
2011-10-07 15:08:16 -04:00
parent 824a254475
commit 403f0c63f7
2 changed files with 22 additions and 19 deletions

View File

@@ -184,14 +184,15 @@ ${project.name} : (optional), the name of the assembly
${tool.dir} : dir for tools
-->
<target name="common.run-tests">
<if test="${not test.withcoverage}" >
<call target="common.run-tests.nunit" />
</if>
<if test="${test.withcoverage}" >
<call target="common.run-tests.opencover" />
</if>
<if test="${not test.withcoverage}" >
<call target="common.run-tests.nunit" />
</if>
<property name="test.withcoverage" value="false"/>
</target>
<!--
@@ -316,6 +317,11 @@ ${tool.dir} : dir for tools
<arg value="-filter:&quot;+[Spring*]* -[*Test*]* -[*nunit*]*&quot;" />
<arg value="-output:${test.bin.dir}/${test.assemblyname}.dll-TestCoverage.xml" />
</exec>
<exec program="${tool.dir}\ReporterGenerator\bin\ReportGenerator.exe" workingdir="${test.bin.dir}" verbose="true">
<arg value="${test.assemblyname}.dll-TestCoverage.xml" />
<arg path="${test.bin.dir}\CoverageReport\${test.assemblyname}" />
</exec>
</target>