EMMA with Junit, should I be testing with the instrumented classes or java classes?

后端 未结 2 405
温柔的废话
温柔的废话 2021-01-29 00:30

I\'ve been going through this tutorial for my ANT Script for emma/junit, it states

In the element of

相关标签:
2条回答
  • 2021-01-29 00:51

    Can you try replacing

    <test 
    name="test.nz.ac.massey.cs.sdc.log4jassignment.s06005586.AppenderLayoutTest"
    todir="${coverage.dir}">
    

    with

    <batchtest>
        <fileset dir="${instr.dir}" includes="**/*Test.class" />
    </batchtest>
    

    Lastly I would ask you to put some sysout in your test and see what is going wrong in the test. This might something to do with configuration I feel.

    0 讨论(0)
  • 2021-01-29 00:57

    Looking at the latest trace you shared it seems can use

    -XX:-UseSplitVerifier
    

    as VM argument to get rid of the error related to JDK7.

    or Check this out

    0 讨论(0)
提交回复
热议问题