diff options
author | Dominik Stadler <centic@apache.org> | 2016-12-31 09:43:13 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2016-12-31 09:43:13 +0000 |
commit | 70864c5a57842a0c56707d6416c8e8d9afdb1953 (patch) | |
tree | ce2d7f42d3627371288dfb5e356ee10a87cf5d91 /build.xml | |
parent | d3173873cc4e1ddd685c9e71b462c33d85689190 (diff) | |
download | poi-70864c5a57842a0c56707d6416c8e8d9afdb1953.tar.gz poi-70864c5a57842a0c56707d6416c8e8d9afdb1953.zip |
Coverage:
* Exclude "examples" from coverage in Jenkins, add some comments
* Fix warning in newer Gradle versions
* Adjust coverage-excludes in build.xml
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1776715 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -239,7 +239,7 @@ under the License. <!-- Coverage --> <property name="coverage.dir" value="build/coverage"/> <!-- Exclude some uninteresting classes from coverage-instrumentation as we do not want to measure coverage in those packages anyway --> - <property name="coverage.excludes" value="org.openxmlformats.*:com.*:org.junit.*:junit.*:org.etsi.*:org.w3.*"/> + <property name="coverage.excludes" value="org.openxmlformats.*:com.*:org.junit.*:junit.*:org.etsi.*:org.w3.*:org.slf4j.*:org.hamcrest.*:org.bouncycastle.*:org.apache.xmlbeans.*:org.apache.tools.*:org.apache.commons.*:org.apache.jcp.*:sun.*:schemaorg_apache_xmlbeans.*"/> <property name="file.leak.detector" value="-Dthis.is.a.dummy=true"/> @@ -1209,13 +1209,8 @@ under the License. <classfiles> <fileset dir="${ooxml.output.dir}"/> <!-- there are no actual POI classes in build/ooxml-lite-classes, only generated code... - fileset dir="${ooxml.lite.output.dir}"> - <exclude name="org/openxmlformats/**"/> - <exclude name="schema*/**"/> - <exclude name="org/etsi/**"/> - <exclude name="org/w3/**"/> - <exclude name="com/**"/> - </fileset--> + <fileset dir="${ooxml.lite.output.dir}"/> + --> </classfiles> <sourcefiles encoding="UTF-8"> <fileset dir="${ooxml.src}"/> @@ -1323,7 +1318,7 @@ under the License. <target name="test-hssf" unless="main.hssf.test.notRequired" depends="compile-main, -test-main-hssf-check,jacocotask" xmlns:jacoco="antlib:org.jacoco.ant" description="test HSSF classes only"> - <jacoco:coverage enabled="${coverage.enabled}" excludes="${coverage.excludes}" destfile="build/jacoco-main.exec"> + <jacoco:coverage enabled="${coverage.enabled}" excludes="${coverage.excludes}" destfile="build/jacoco-hssf.exec"> <junit fork="yes" forkmode="once" printsummary="yes" haltonfailure="${halt.on.test.failure}" failureproperty="main.hssf.test.failed" showoutput="true"> <classpath refid="test.classpath"/> @@ -1506,7 +1501,7 @@ under the License. <attribute name="classpath"/> <attribute name="type"/> <sequential> - <jacoco:coverage enabled="${coverage.enabled}" excludes="${coverage.excludes}" destfile="build/jacoco-@{type}.exec"> + <jacoco:coverage enabled="${coverage.enabled}" excludes="${coverage.excludes}" destfile="build/jacoco-@{type}-ss.exec"> <junit printsummary="yes" fork="yes" forkmode="once" haltonfailure="${halt.on.test.failure}" failureproperty="ooxml.ss.test.failed"> <classpath refid="@{classpath}"/> |