Getting line and branch coverage N/A

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown Getting line and branch coverage N/A

by rajeev chauhan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



---------- Forwarded message ----------
From: rajeev chauhan <rajeev.chauhan08@...>
Date: Mon, May 5, 2008 at 3:06 PM
Subject: Getting line and branch coverage N/A
To: cobertura-devel@....


Hi all,

I am using cobertura to calculate code coverage of a web application.
I instrumented a jar file and placed it in webapp's WEB-INF lib directory in tomcat deployments folder.
and ran cobertura instrument task through ant giving specific location to cobertura.ser file

    <target name="cobertura_instrument" depends="clean_coverage">
        <mkdir dir="${basedir}/tempdir"/>
        <copy file="${aps.home.web-inf.lib}/ess_svp.jar" todir="${basedir}/tempdir"/>
        <cobertura-instrument datafile="${cobertura.data}">
            <fileset dir="${aps.home.web-inf.lib}">
                <include name="ess_svp.jar" />
            </fileset>
        </cobertura-instrument>
    </target>

Everything goes fine except I get following warnings, and in results I get no information about coverage.

[cobertura-instrument] WARN   visitEnd, No line number information found for class com.essbase.smartview.analytic.AnalyticColRowInfo. 
Perhaps you need to compile with debug=true?

It shows line coverage N/A Branch coverage N/A.
can anybody tell me where I went wrong

Thanx in advance
Rajeev Singh



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: Getting line and branch coverage N/A

by John W. Lewis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

 

It is not unusual to see a few classes (like Stubs) show the "No line number information found…" message, but in this case, it looks like when AnalyticColRowInfo is compiled, the debug options are not set correctly.   Make sure the following options are set:

 

<javac

                debug="true"

                debugoptions="lines,source"

 

I believe "lines" is required.   Maybe not "source".   This is most convenient for debugging:   debugoptions="lines,vars,source".

 

Let me know how that goes.   There are other things that can be tried if it does not work.

 

John  

 

From: cobertura-devel-bounces@... [mailto:cobertura-devel-bounces@...] On Behalf Of rajeev chauhan
Sent: Monday, May 05, 2008 5:43 AM
To: cobertura-devel@...
Subject: [Cobertura-devel] Getting line and branch coverage N/A

 

 

---------- Forwarded message ----------
From: rajeev chauhan <rajeev.chauhan08@...>
Date: Mon, May 5, 2008 at 3:06 PM
Subject: Getting line and branch coverage N/A
To: cobertura-devel@....


Hi all,

I am using cobertura to calculate code coverage of a web application.
I instrumented a jar file and placed it in webapp's WEB-INF lib directory in tomcat deployments folder.
and ran cobertura instrument task through ant giving specific location to cobertura.ser file

    <target name="cobertura_instrument" depends="clean_coverage">
        <mkdir dir="${basedir}/tempdir"/>
        <copy file="${aps.home.web-inf.lib}/ess_svp.jar" todir="${basedir}/tempdir"/>
        <cobertura-instrument datafile="${cobertura.data}">
            <fileset dir="${aps.home.web-inf.lib}">
                <include name="ess_svp.jar" />
            </fileset>
        </cobertura-instrument>
    </target>

Everything goes fine except I get following warnings, and in results I get no information about coverage.

[cobertura-instrument] WARN   visitEnd, No line number information found for class com.essbase.smartview.analytic.AnalyticColRowInfo. 
Perhaps you need to compile with debug=true?

It shows line coverage N/A Branch coverage N/A.
can anybody tell me where I went wrong

Thanx in advance
Rajeev Singh

 


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: Getting line and branch coverage N/A

by John W. Lewis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

 

Sorry.  It is debuglevel - not debugoptions:

 

debuglevel="vars,lines,source"

 

From: cobertura-devel-bounces@... [mailto:cobertura-devel-bounces@...] On Behalf Of John W. Lewis
Sent: Monday, May 05, 2008 9:48 AM
To: rajeev chauhan; cobertura-devel@...
Subject: Re: [Cobertura-devel] Getting line and branch coverage N/A

 

 

It is not unusual to see a few classes (like Stubs) show the "No line number information found…" message, but in this case, it looks like when AnalyticColRowInfo is compiled, the debug options are not set correctly.   Make sure the following options are set:

 

<javac

                debug="true"

                debugoptions="lines,source"

 

I believe "lines" is required.   Maybe not "source".   This is most convenient for debugging:   debugoptions="lines,vars,source".

 

Let me know how that goes.   There are other things that can be tried if it does not work.

 

John  

 

From: cobertura-devel-bounces@... [mailto:cobertura-devel-bounces@...] On Behalf Of rajeev chauhan
Sent: Monday, May 05, 2008 5:43 AM
To: cobertura-devel@...
Subject: [Cobertura-devel] Getting line and branch coverage N/A

 

 

---------- Forwarded message ----------
From: rajeev chauhan <rajeev.chauhan08@...>
Date: Mon, May 5, 2008 at 3:06 PM
Subject: Getting line and branch coverage N/A
To: cobertura-devel@....


Hi all,

I am using cobertura to calculate code coverage of a web application.
I instrumented a jar file and placed it in webapp's WEB-INF lib directory in tomcat deployments folder.
and ran cobertura instrument task through ant giving specific location to cobertura.ser file

    <target name="cobertura_instrument" depends="clean_coverage">
        <mkdir dir="${basedir}/tempdir"/>
        <copy file="${aps.home.web-inf.lib}/ess_svp.jar" todir="${basedir}/tempdir"/>
        <cobertura-instrument datafile="${cobertura.data}">
            <fileset dir="${aps.home.web-inf.lib}">
                <include name="ess_svp.jar" />
            </fileset>
        </cobertura-instrument>
    </target>

Everything goes fine except I get following warnings, and in results I get no information about coverage.

[cobertura-instrument] WARN   visitEnd, No line number information found for class com.essbase.smartview.analytic.AnalyticColRowInfo. 
Perhaps you need to compile with debug=true?

It shows line coverage N/A Branch coverage N/A.
can anybody tell me where I went wrong

Thanx in advance
Rajeev Singh

 


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel
LightInTheBox - Buy quality products at wholesale price!