Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » PDE JUnit Plugin & jcoverage
PDE JUnit Plugin & jcoverage [message #152975] Wed, 07 April 2004 09:46 Go to next message
Eclipse UserFriend
Originally posted by: paul.burkley.intel.com

Has anybody had any luck in integrating jcoverage with the PDE JUnit
Plugin? Our team has successfully used jcoverage to gather coverage
information from standard JUnit test cases, but are running into
difficulties for test cases that test our plugin. As far as I can tell,
we need to do the following:

1) Instrument our plugin with jcoverage
2) Launch a run-time workbench with the instrumented plugin
3) Invoke the JUnit test runner in the run-time workbench

Steps 2) and 3) are performed by the PDE JUnit Plugin's "JUnit Plug-in
Test" launch configuration, so I'm not sure how the instrumented plugin
can be used here. Also, after some preliminary investigation, I'm having
problems making the jcoverage plugin available in the run-time workbench.
If I try to use some jcoverage classes in my code (and update by plug-in
dependencies to include com.jcoverage and update my classpath) it builds
fine, but when I run it in the run-time workbench I get a
NoClassDefFoundError exception on the use of the jcoverage classes. It
seems the com.jcoverage plugin isn't getting properly loaded, even though
it is listed as a plugin dependency.

Ideally we would create an Ant script to perform the above steps. If
anyone has had any luck with this please let me know, or if you can point
me in the right direction it'd be greatly appreciated. Thanks!

Paul.
Re: PDE JUnit Plugin & jcoverage [message #153158 is a reply to message #152975] Wed, 07 April 2004 18:28 Go to previous message
Genady Beryozkin is currently offline Genady BeryozkinFriend
Messages: 410
Registered: July 2009
Senior Member
I had many problems running any form of coverage on PDE projects, untit
I found Clover
which has an eclipse plugin. It instruments the source and uses javac to
compile it.

Despide this strange method, it does work.

Genady

Paul Burkley wrote:

>Has anybody had any luck in integrating jcoverage with the PDE JUnit
>Plugin? Our team has successfully used jcoverage to gather coverage
>information from standard JUnit test cases, but are running into
>difficulties for test cases that test our plugin. As far as I can tell,
>we need to do the following:
>
> 1) Instrument our plugin with jcoverage
> 2) Launch a run-time workbench with the instrumented plugin
> 3) Invoke the JUnit test runner in the run-time workbench
>
>Steps 2) and 3) are performed by the PDE JUnit Plugin's "JUnit Plug-in
>Test" launch configuration, so I'm not sure how the instrumented plugin
>can be used here. Also, after some preliminary investigation, I'm having
>problems making the jcoverage plugin available in the run-time workbench.
>If I try to use some jcoverage classes in my code (and update by plug-in
>dependencies to include com.jcoverage and update my classpath) it builds
>fine, but when I run it in the run-time workbench I get a
>NoClassDefFoundError exception on the use of the jcoverage classes. It
>seems the com.jcoverage plugin isn't getting properly loaded, even though
>it is listed as a plugin dependency.
>
>Ideally we would create an Ant script to perform the above steps. If
>anyone has had any luck with this please let me know, or if you can point
>me in the right direction it'd be greatly appreciated. Thanks!
>
>Paul.
>
>
>
>

--
Genady Beryozkin
http://www.genady.net/
Previous Topic:java build path
Next Topic:Eclipse 3.0 M8 too slow.
Goto Forum:
  


Current Time: Sat Jul 27 18:31:31 GMT 2024

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

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

Back to the top