Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Coverage and TPTP JUnit
Coverage and TPTP JUnit [message #84604] Thu, 28 September 2006 08:48 Go to next message
Wolfgang Roessler is currently offline Wolfgang RoesslerFriend
Messages: 35
Registered: July 2009
Member
Hello,

when running my JUnit test with normal JUnit, line coverage works. But
when I run it via TPTP JUnit, it doesn't cover any information.

Any ideas?

Greets
Wolfgang
Re: Coverage and TPTP JUnit [message #96780 is a reply to message #84604] Mon, 23 April 2007 11:50 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Wolfgang,
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
"Wolfgang Roessler" <contact@roessler-wolfgang.de> wrote in message
news:82de4ab272128ac96b5f8f5758d7770e$1@www.eclipse.org...
> Hello,
>
> when running my JUnit test with normal JUnit, line coverage works. But
> when I run it via TPTP JUnit, it doesn't cover any information.
>
> Any ideas?
>
> Greets
> Wolfgang
>
Previous Topic:Questions about remote running of JUnit Plugin Tests?
Next Topic:TPTP & XML report improvement
Goto Forum:
  


Current Time: Mon Dec 22 10:40:39 GMT 2014

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

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