fixing buidl to only report coverage on .NET 4 build
This commit is contained in:
@@ -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:"+[Spring*]* -[*Test*]* -[*nunit*]*"" />
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user