Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Combine JUnit and Coverage data
Combine JUnit and Coverage data [message #94101] Fri, 23 March 2007 18:56 Go to next message
mike is currently offline mikeFriend
Messages: 80
Registered: July 2009
Member
I would like to run JUnit test in conjunction with TPTP code coverage to
verfiy the number of time a method is called or the %hit for a method. Is
there some way to do this?? Is there some way to extract and manipulate
data TPTP has collected??
Re: Combine JUnit and Coverage data [message #95526 is a reply to message #94101] Thu, 12 April 2007 11:30 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Michael,
Unfortunately, this use case is currently not supported (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=75029).

To work around this limitation and use the TPTP Method Level Code
Coverage function during test execution, do the following:

1) Append the following JVM parameter (PI Agent parameter) to the
hyades.test.JVM parameter in the <Agent Controller installation
directory>\plugins\org.eclipse.hyades.test.tools.core_<version
number>\config\pluginconfig.xml file:

<Parameter position="prepend"
value="-Dhyades.test.JVM=&quot;%JAVA_PATH%&quot; -XrunpiAgent:server=controlled"/>

2) Restart the Agent Controller.

3) Run your test.

4) Attach to the Java Profiler agent in the workbench (Run >> Profile... >>
Attach - Java Process). Make sure you set the correct filters and analysis
types (e.g. Method Level Code Coverage).

Consult the Agent Controller's getting_started.html file for more
information on PI Agent parameters. I prefer controlled mode since it stops
application until you attach/monitor.

Once the trace data is collected and loaded in to the models for display
in the UI, you can save/export/filter/sort accordingly.

Paul
"michael shipkowski" <michael.shipkowski@sas.com> wrote in message
news:2a73efbe4bc6f069e6be194eaa002e24$1@www.eclipse.org...
>I would like to run JUnit test in conjunction with TPTP code coverage to
>verfiy the number of time a method is called or the %hit for a method. Is
>there some way to do this?? Is there some way to extract and manipulate
>data TPTP has collected??
>
Previous Topic:APIRecorder, Internal AgentController and JVM TI
Next Topic:TPTP in Europa: problem with NPE
Goto Forum:
  


Current Time: Wed Nov 26 13:18:53 GMT 2014

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

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