PDE JUnit Plugin & jcoverage [message #152975] |
Wed, 07 April 2004 09:46 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Genady Beryozkin![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=eclipse%40genady.org) 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02939 seconds