All,

I can't get JCoverage to report the real numbers. It keeps telling me I have 0% 
coverage for everything.

I added a snippet of the JCoverage.xml below, together with the build section 
of the POM file. I know for sure that the SimpleQueue class is covered by my 
JUnit tests.

Please advise.

Thanks,

Erwin

  <build>
    <sourceDirectory>src/main</sourceDirectory>
    <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
    <resources>
      <resource>
        <directory>src/resources</directory>
      </resource>
    </resources>
    <unitTest>
      <includes>
        <include>**/*Test.java</include>
      </includes>
    </unitTest>
  </build>

  <class name="myPackage.SimpleQueue">
    <file name="myPackage/SimpleQueue.java"/>
    <line rate="0.0"/>
    <branch rate="0.7"/>
    <methods>
      <method nameAndSignature="&lt;clinit&gt;()V">
        <line rate="0.0"/>
        <branch rate="1.0"/>
      </method>
      <method nameAndSignature="&lt;init&gt;()V">
        <line rate="0.0"/>
        <branch rate="1.0"/>
      </method>
      <method nameAndSignature="class$(Ljava/lang/String;)Ljava/lang/Class;">
        <line rate="0.0"/>
        <branch rate="1.0"/>
      </method>
      <method nameAndSignature="dequeue()Ljava/lang/Object;">
        <line rate="0.0"/>
        <branch rate="0.0"/>
      </method>
      <method nameAndSignature="dispose()V">
        <line rate="0.0"/>
        <branch rate="1.0"/>
      </method>
      <method nameAndSignature="enqueue(Ljava/lang/Object;)Z">
        <line rate="0.0"/>
        <branch rate="0.0"/>
      </method>
      <method nameAndSignature="getObjectWithoutDequeue()Ljava/lang/Object;">
        <line rate="0.0"/>
        <branch rate="0.0"/>
      </method>
      <method nameAndSignature="isEmpty()Z">
        <line rate="0.0"/>
        <branch rate="1.0"/>
      </method>
      <method nameAndSignature="setMaxSize(I)V">
        <line rate="0.0"/>
        <branch rate="1.0"/>
      </method>
      <method nameAndSignature="size()I">
        <line rate="0.0"/>
        <branch rate="1.0"/>
      </method>
    </methods>
    <valid lines="25, 27, 29, 31, 35, 36, 40, 41, 42, 43, 44, 46, 47, 57, 58, 
59, 60, 61, 64, 65, 66, 73, 74, 75, 84, 85, 87, 88, 89, 90, 91, 93, 102, 111, 
115, 116"/>
    <line number="25" hits="0"/>
    <line number="27" hits="0"/>
    <line number="29" hits="0"/>
    <line number="31" hits="0"/>
    <line number="35" hits="0"/>
    <line number="36" hits="0"/>
    <line number="40" hits="0"/>
    <line number="41" hits="0"/>
    <line number="42" hits="0"/>
    <line number="43" hits="0"/>
    <line number="44" hits="0"/>
    <line number="46" hits="0"/>
    <line number="47" hits="0"/>
    <line number="57" hits="0"/>
    <line number="58" hits="0"/>
    <line number="59" hits="0"/>
    <line number="60" hits="0"/>
    <line number="61" hits="0"/>
    <line number="64" hits="0"/>
    <line number="65" hits="0"/>
    <line number="66" hits="0"/>
    <line number="73" hits="0"/>
    <line number="74" hits="0"/>
    <line number="75" hits="0"/>
    <line number="84" hits="0"/>
    <line number="85" hits="0"/>
    <line number="87" hits="0"/>
    <line number="88" hits="0"/>
    <line number="89" hits="0"/>
    <line number="90" hits="0"/>
    <line number="91" hits="0"/>
    <line number="93" hits="0"/>
    <line number="102" hits="0"/>
    <line number="111" hits="0"/>
    <line number="115" hits="0"/>
    <line number="116" hits="0"/>
  </class>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to