lib/build/analyzers/ncover.step in uppercutbuild-0.9.0.340 vs lib/build/analyzers/ncover.step in uppercutbuild-0.9.0.345.20100805
- old
+ new
@@ -32,11 +32,12 @@
<property name="file.xml.code_coverage_results" value="${project.name}.CodeCoverageSummary-results.xml" />
<property name="file.html.code_coverage_results" value="${project.name}.CodeCoverageSummary-results.html" />
<property name="tests.excluded_categories.comma_separated" value="Database,Integration,Slow,NotWorking" overwrite="false" />
<property name="test.args" value="" />
<property name="test.args" value="/rt:Text /rnf:mbUnit /rf:"${dirs.ncover_results}" /ec:${tests.excluded_categories.comma_separated}" if="${test.framework=='mbunit2'}" />
- <property name="test.args" value="/xml:"${dirs.ncover_results}\nunit-results.xml" /nologo /framework=${microsoft.framework} /exclude:${tests.excluded_categories.comma_separated}" if="${test.framework=='nunit'}" />
+ <property name="test.args" value="/xml:"${dirs.ncover_results}\nunit-results.xml" /nologo /exclude:${tests.excluded_categories.comma_separated}" if="${test.framework=='nunit'}" />
+ <!--property name="test.args" value="/xml:"${dirs.ncover_results}\nunit-results.xml" /nologo /framework=${microsoft.framework} /exclude:${tests.excluded_categories.comma_separated}" if="${test.framework=='nunit'}" /-->
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
<property name="is.replaced" value="false" />
<property name="fail.build.on.error" value="false" />
@@ -92,19 +93,20 @@
<echo message="Getting test dlls based on name in directory ${path::get-full-path(dirs.build.code)}." />
<property name="dll.names" value="" />
<foreach item="File" property="dll.filename">
<in>
<items>
- <exclude name="${dirs.build.code}\*Database*dll" />
- <exclude name="${dirs.build.code}\*.Integration*dll" />
- <exclude name="${dirs.build.code}\TestFu.dll" />
- <include name="${dirs.build.code}\*Test*dll" />
- <include name="${dirs.build.code}\*Spec*dll" />
+ <exclude name="${dirs.build.code}\lib\**" />
+ <exclude name="${dirs.build.code}\**\*Database*dll" />
+ <exclude name="${dirs.build.code}\**\*.Integration*dll" />
+ <exclude name="${dirs.build.code}\**\TestFu.dll" />
+ <include name="${dirs.build.code}\**\*Test*dll" />
+ <include name="${dirs.build.code}\**\*Spec*dll" />
</items>
</in>
<do>
- <property name="dll.names" value="${dll.names + ' ' + path::get-file-name(dll.filename)}" />
+ <property name="dll.names" value="${dll.names + ' ' + string::replace(dll.filename,path::get-full-path(dirs.build.code) + '\','') + ''}" />
</do>
</foreach>
<property name="dlls.test" value="${dll.names}" />
<echo message="Running NCover against these test dlls - ${dlls.test}." />
@@ -123,13 +125,13 @@
logFile="${file.ncover_log}"
excludeAttributes="CoverageExcludeAttribute"
failonerror="false"
verbose="true">
<assemblies basedir="${dirs.build.code}">
- <exclude name="${dirs.build.code}\TestFu.dll" />
- <exclude name="${dirs.build.code}\*Test*dll" />
- <exclude name="${dirs.build.code}\*Spec*dll" />
- <include name="${dirs.build.code}\${project.name}*.dll" />
+ <exclude name="${dirs.build.code}\**\TestFu.dll" />
+ <exclude name="${dirs.build.code}\**\*Test*dll" />
+ <exclude name="${dirs.build.code}\**\*Spec*dll" />
+ <include name="${dirs.build.code}\**\${project.name}*.dll" />
</assemblies>
</ncover>
</target>
<target name="ncover_explorer" depends="ncover" if="${file::exists(app.ncover.explorer)}" >
\ No newline at end of file