home
download
howto
screenshots
roadmap
FAQ

Project Home
Bugs
Forums

Impressum

Coverlipse FAQ


Problems

With the release 0.9.3 I get an error saying: Plug-in de.uka.ipd.coverage was unable to load class de.uka.ipd.coverage.plugin.launcher.CoverageLaunchConfigurationDelegate
For some unknown reason this happens with Eclipse 3.0 when trying to launch a Coverlipse launch target before executing any other Coverlipse code.
This error can be prevented by executing any other Coverlipse action before executing the launch target, like showing a view or showing the launch target in the launch target management area.

Can I use Coverlipse on a project that uses Java Commons Logging?
Short answer: yes, since version 0.9.3.
Long answer: Java Commons Logging introduces a classloader hell that is discussed to some extend by the author of Log4J here and here.
Thus, Coverlipse adds the Java Commons Logging package to those handled by the system classloader. This way, projects that use Java Commons Logging can be tested with Coverlipse. However, it is not possible to test the Java Commons Logging itself with coverage by Coverlipse.

Does Coverlipse support Java 5?
Coverlipse is not tested with Java 5 and does not explicitly support Java 5. But it works on the bytecode, and the only problem that was reported yet related to Java 5 was fixed in 0.9.3 by a patch from Rafal Krzewski.

Assertions don't seem to be executed, even when enabled.

Again, this is a problem occurring only with Eclipse 3.0. Because of a Bug in the Eclipse 3.0 API, VM Arguments are not regarded with this version. There is no known workaround.
This problem does not occur with Eclipse 3.1

I have found a bug. What should I do?
Go to the Bugs page at Sourceforge and check if your bug already has been reported. If not, submit a new bug report or post the issue in the forum.
The most important thing about a bug report is a description that allows the reproduction of the ill behaviour. So, if your bug is about the interaction in Eclipse, please describe what you are doing, expecting and what Coverlipse does instead.
If your bug is about a JUnit test that fails where it shouldn't, please include at least a stack trace. In most cases this is not enough to reproduce the bug, so expect to be asked about example code. The best example code is a small Eclipse project with a class and a test that produces the ill behaviour.
In all cases, make sure to include the version of Coverlipse and Eclipse you are using.

Common Questions

What code coverages does Coverlipse support?
For now, Coverlipse supports Block Coverage and All Uses Coverage. Branch coverage is planned to come with Version 1.0.


There are coverage tools a dime a dozen, even free ones. What makes Coverlipse unique?
For one, it is an Eclipse plugin. It does not provide several hundred ways of configurations like other coverage tools, it just uses the Eclipse way of configuring JUnit tests and gives you direct feedback in the Java Editor and specialized views.
Second, it can give you the data flow analysis All Uses Coverage. To my knowledge there is no other tool that can do data flow analysis on Unit Tests for the Java language.

Where can I get the source code?
The source code is in the Sourceforge CVS. Instructions how to access it are available here.
How can I build Coverlipse myself from the CVS?
  • In Eclipse, add a new CVS location:
    • host: cvs.sf.net
    • repository path: /cvsroot/coverlipse
    • user: Anonymous
    • connection type: pserver
  • Check out the project coverlipse-tool from HEAD.
  • Select File, Export..., Deployable plugins and fragments. Click Next.
  • In the following window, select de.uka.ipd.coverage from the available Plugins, choose a zip filename as export destination and make sure the compiler and source compatibility is Java 1.4.
  • Click Finish and wait for the zip file to be build. Install as usual.
Be aware that between releases the CVS content is unstable most of the time.


Licencing

How much does Coverlipse cost?
Nothing. It's open source! Namely, its distributed under the Common Public Licence (CPL), thus you have the source code and you can modify the source code and you can redistribute your modifications under the CPL.


Technical

How does Coverlipse work?
Coverlipse uses the Apache BCEL toolkit to modify the Java Bytecode. During the test, all paths are recorded on a method granularity. After the test, the selected code coverage are is computed and shown to the user.
How do I tell Eclipse to use specific locales?
Currently, there is only a german translation of the plugin available. If your Eclipse by default uses the english locale, start your Eclipse session with eclipse -nl de_DE. Similarly, if you see the german version but want to use the english one, start your Eclipse session with eclipse -nl en_US. UpdateSince Coverlipse 0.9.3 the german translation is not updated any more.


08-20-2005: Bugfix release 0.9.3.1


07-26-2005: Release of Coverlipse 0.9.3.


07-07-2005: Release of Coverlipse 0.9.2.


06-16-2005: Release of Coverlipse 0.9.1.

Last updated 2005-09-03 14:32:16 by Matthias Kempka (coverlipse at mkempka.de)