Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Profiling JUnit tests Headless to get Code Coverage.
Profiling JUnit tests Headless to get Code Coverage. [message #90433] Sun, 17 December 2006 13:54 Go to next message
Ravi Roy is currently offline Ravi RoyFriend
Messages: 47
Registered: July 2009
Member
Hi.

I have two questions about the code coverage headless and generating the
HTML reports from trace.trcxml (question about generating HTML reports from
trace.trcxml have been posted ealier too but I did not get any response on
the same, I am not sure if this is possible or not in TPTP 4.3.0)

1.I want to profile the JUnit tests in headless way to get the Code
Coverage. I am not sure how can I specify the Code Coverage as profiling
resource in profile / filters.txt, becuase I do not find any documentation
for the same or any other way exists for the same (which I am not aware of).

2.How to generate HTML / BIRT Reports from trace data (trace.trcxml) in a
headless way, I am not sure, if any Tool / Utitlity / Log Analyzer exists
for the same.

I appreciate any pointers provided for these questions.

Regards,
Ravi.
Re: Profiling JUnit tests Headless to get Code Coverage. [message #96675 is a reply to message #90433] Mon, 23 April 2007 11:15 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Ravi,
In TPTP, you can use the Method Level code coverage function. Method
Level code coverage is another analysis type for the Java Profiler data
collector in the Profiling launch configuration. For more information, see:

http://help.eclipse.org/help32/topic/org.eclipse.tptp.platfo rm.doc.user/tasks/tevwcode.htm

Alternatively, you can use the Line Level code coverage Technology
Preview. You can learn about the TPTP Line Level Code Coverage tooling
(including
a viewlet) for the latest release at:

http://www.eclipse.org/tptp/home/downloads/downloads.php >> Technology
Preview >> Code Coverage

If you are interested in using the TPTP Line Level Code Coverage tooling
with TPTP JUnit tests, please see the work-around here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=138736#c17

I am not aware of any function in TPTP that allows you to generate
headless reports. However, you could write a service using the Automatable
Services Framework (AS) to reuse the exiting BIRT report templates. For
more information, see:

http://help.eclipse.org/help32/topic/org.eclipse.hyades.test .doc.user/tasks/tlaunching-tests-from-scripts-and-applicatio ns.htm

Paul
"Ravi Roy" <ravi.aroy@gmail.com> wrote in message
news:em3i5p$d6d$1@utils.eclipse.org...
> Hi.
>
> I have two questions about the code coverage headless and generating the
> HTML reports from trace.trcxml (question about generating HTML reports
> from trace.trcxml have been posted ealier too but I did not get any
> response on the same, I am not sure if this is possible or not in TPTP
> 4.3.0)
>
> 1.I want to profile the JUnit tests in headless way to get the Code
> Coverage. I am not sure how can I specify the Code Coverage as profiling
> resource in profile / filters.txt, becuase I do not find any documentation
> for the same or any other way exists for the same (which I am not aware
> of).
>
> 2.How to generate HTML / BIRT Reports from trace data (trace.trcxml) in a
> headless way, I am not sure, if any Tool / Utitlity / Log Analyzer exists
> for the same.
>
> I appreciate any pointers provided for these questions.
>
> Regards,
> Ravi.
>
Re: Profiling JUnit tests Headless to get Code Coverage. [message #96984 is a reply to message #96675] Wed, 25 April 2007 11:51 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Rave,
One correction:

If you are interested in using the TPTP Method Level Code Coverage tooling
with TPTP JUnit tests, please see the work-around here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=138736#c17

Moving forward, we are working at integrating EMMA for line level code
coverage with test execution in TPTP (see defect
https://bugs.eclipse.org/bugs/show_bug.cgi?id=170800). Please feel free to
comment or contribute to this defect.

Paul
"Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
news:f0i4hd$udk$1@build.eclipse.org...
> Hi Ravi,
> In TPTP, you can use the Method Level code coverage function. Method
> Level code coverage is another analysis type for the Java Profiler data
> collector in the Profiling launch configuration. For more information,
> see:
>
> http://help.eclipse.org/help32/topic/org.eclipse.tptp.platfo rm.doc.user/tasks/tevwcode.htm
>
> Alternatively, you can use the Line Level code coverage Technology
> Preview. You can learn about the TPTP Line Level Code Coverage tooling
> (including
> a viewlet) for the latest release at:
>
> http://www.eclipse.org/tptp/home/downloads/downloads.php >> Technology
> Preview >> Code Coverage
>
> If you are interested in using the TPTP Line Level Code Coverage
> tooling with TPTP JUnit tests, please see the work-around here:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=138736#c17
>
> I am not aware of any function in TPTP that allows you to generate
> headless reports. However, you could write a service using the
> Automatable Services Framework (AS) to reuse the exiting BIRT report
> templates. For more information, see:
>
> http://help.eclipse.org/help32/topic/org.eclipse.hyades.test .doc.user/tasks/tlaunching-tests-from-scripts-and-applicatio ns.htm
>
> Paul
> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
> news:em3i5p$d6d$1@utils.eclipse.org...
>> Hi.
>>
>> I have two questions about the code coverage headless and generating the
>> HTML reports from trace.trcxml (question about generating HTML reports
>> from trace.trcxml have been posted ealier too but I did not get any
>> response on the same, I am not sure if this is possible or not in TPTP
>> 4.3.0)
>>
>> 1.I want to profile the JUnit tests in headless way to get the Code
>> Coverage. I am not sure how can I specify the Code Coverage as profiling
>> resource in profile / filters.txt, becuase I do not find any
>> documentation for the same or any other way exists for the same (which I
>> am not aware of).
>>
>> 2.How to generate HTML / BIRT Reports from trace data (trace.trcxml) in a
>> headless way, I am not sure, if any Tool / Utitlity / Log Analyzer exists
>> for the same.
>>
>> I appreciate any pointers provided for these questions.
>>
>> Regards,
>> Ravi.
>>
>
>
Previous Topic:TPTP auto gui testing ..
Next Topic:Line Level Coverage runtime error
Goto Forum:
  


Current Time: Sat Dec 20 21:43:01 GMT 2014

Powered by FUDForum. Page generated in 0.01800 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software