Sunil Prakash Inteti's Blog

A technology perspective

Cobertura loaded information on 0 classes, classpath issue ?

Posted by Sunil on March 16, 2010

In a grails application, we can use the code coverage plugin to generate the coverage reports. It is simple to use and generate the reports. I faced a perculiar problem while doing a grails test-app. I get an info message that cobertura loaded information on 0 classes

It took some time to figure out the problem. The code coverage plugin(present in the .grails folder) has the cobertura jars in its lib directory. By mistake the cobertura jar with a different version is checked in to the lib directory of the project. So there was a version conflict and hence cobertura was not loading the class informations. Once i removed the unnecessary cobertura jar in the projects lib directory, cobertura was generating reports normally. This could be one of the reasons for cobertura not loading the classes. Hope this helps if you are facing similar problem.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.