cobertura report incorrectly shows 0 hits for all lines in some src files

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: cobertura-plugin
    • None
    • Environment:
      Server = Red Hat Enterprise Linux Server release 5.4 (Tikanga) java-1.6.0-openjdk-1.6.0.0-1.2.b09.el5 hudson 1.342 cobertura plugin 0.8.10
      Client = openSUSE 11.1 (x86_64) Firefox 3.0.4

      When I drill down to a file in the coverage report, the % coverage is accuratly showing non-zero coverage, but the source code listing on the report shows all lines as 0 hits.

      In the following example, the report at https://[HUDSON-HOST]/job/atg-junit/624/cobertura/com_ngp_integration_payment_paymentech/PaymentechIntegrationService_java/ shows 100% in the File Coverage Summary section, but line 11 is showing as 0 hits in the Source section.

      here is a snippet from coverage.xml:

      <class name="com.ngp.integration.payment.paymentech.PaymentechIntegrationService" filename="com/ngp/integration/payment/paymentech/PaymentechIntegrationService.java" line-rate="1.0" branch-rate="1.0" complexity="1.0">
      <methods>
      <method name="<init>" signature="()V" line-rate="1.0" branch-rate="1.0">
      <lines>
      <line number="11" hits="1" branch="false"/>
      </lines>
      </method>
      </methods>
      <lines>
      <line number="11" hits="1" branch="false"/>
      </lines>
      </class>

      Here is the source code:

      package com.ngp.integration.payment.paymentech;

      import atg.commerce.order.CreditCard;

      import com.ngp.common.BillMeLaterData;
      import com.ngp.exception.NgpIntegrationException;
      import com.ngp.integration.NGPIntegrationService;
      import com.paymentech.orbital.sdk.interfaces.ResponseIF;

      public abstract class PaymentechIntegrationService extends NGPIntegrationService

      { public abstract void getCreditCardAuth(CreditCard cc) throws NgpIntegrationException; public abstract void reverseCCAuth(CreditCard cc) throws NgpIntegrationException; public abstract ResponseIF getBillMeLaterAuth(BillMeLaterData bml) throws NgpIntegrationException; }

            Assignee:
            manuel_carrasco
            Reporter:
            dbylsma
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: