[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

jacoco is Debian?



  Hi,

  The last upstream version of picard-tools is using jacoco for its
tests. A quick glance at the upstream website [1] convince me that
this is a too big java software for me to package.

  So, for now, I removed jacoco usage in picard-tools tests, trying
to run them without jacoco (copying the previous build.xml)

  I put below what I think is the relevant part in build.xml

  Regards,
    Vincent

[1] http://eclemma.org/jacoco/

build.xml:
[...]
    <!-- Import JaCoCo Ant tasks -->
    <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
        <classpath path="lib/ant/jacocoant.jar" />
    </taskdef>
[...]
    <!-- TEST -->
    <target name="test" depends="compile, set_excluded_test_groups" description="Run unit tests">
        <taskdef resource="testngtasks" classpathref="classpath"/>
        <jacoco:coverage destfile="jacoco.data" xmlns:jacoco="antlib:org.jacoco.ant">
            <testng suitename="picard-tests" classpathref="classpath" outputdir="${test.output}"
                    failureproperty="tests.failed" excludedgroups="${excludedTestGroups}" workingDir="${basedir}"
                    verbose="${testng.verbosity}">
                <classpath>
                    <pathelement path="${classes}"/>
                    <pathelement path="${classes.test}"/>
                    <pathelement path="${scripts}"/>
                </classpath>
                <classfileset dir="${classes.test}">
                    <include name="**/Test*.class"/>
                    <include name="**/*Test.class"/>
                </classfileset>
                <jvmarg value="-Xmx2G"/>
            </testng>
        </jacoco:coverage>

        <junitreport todir="${dist}/test">
            <fileset dir="${test.output}">
                <include name="*.xml"/>
            </fileset>
            <report format="noframes" todir="${dist}/test" styledir="etc/test"/>
        </junitreport>
        <copy file="etc/test/testng.css" todir="${dist}/test" overwrite="true"/>
        <fail if="tests.failed" message="There were failed unit tests"/>
    </target>

    <target name="test-coverage-report" depends="test" description="Runs tests and creates an HTML code coverage report">
        <jacoco:report xmlns:jacoco="antlib:org.jacoco.ant">
            <executiondata>
                <file file="jacoco.data"/>
            </executiondata>
            <structure name="Picard">
                <classfiles>
                    <fileset dir="classes"/>
                </classfiles>
                <sourcefiles encoding="UTF-8">
                    <fileset dir="src"/>
                </sourcefiles>
            </structure>
            <html destdir="report"/>
        </jacoco:report>
    </target>
[...]



-- 
Vincent Danjean       GPG key ID 0xD17897FA         vdanjean@debian.org
GPG key fingerprint: 621E 3509 654D D77C 43F5  CA4A F6AE F2AF D178 97FA
Unofficial pkgs: http://moais.imag.fr/membres/vincent.danjean/deb.html
APT repo:  deb http://people.debian.org/~vdanjean/debian unstable main


Reply to: