Grails code coverage plugin issue

 

by Taras Matyashovsky

 

Recently I've installed official Grails Code Coverage plugin (called Cobertura). As fas as I'm using appropriate code coverage plugin version for me is 0.9. You also can install it using simple Grails 1.0.4Grails command:

grails install-plugin code-coverage 0.9

But when I tried to use it and to generate test reports using command:

grails test-app-cobertura

I've got an exception:

[cobertura-report]

java.lang.NoClassDefFoundError:

org/apache/log4j/Category

[cobertura-report] Exception in thread "main"

Reason for that was that Code Coverage plugin needs log4j library to be present in project library folder. So when I downloaded latest version (for me it was 1.2.15) everything worked great. Enjoy using Grails Code Coverage Plugin!

 

Comments  

 
0 # Quake 2009-12-01 05:02 hi Reply | Reply with quote | Quote
 
 
0 # Quake 2009-12-01 05:05 good Reply | Reply with quote | Quote
 
 
0 # Quake 2009-12-02 07:57 rtur Reply | Reply with quote | Quote
 
 
0 # Quake 2009-12-02 07:58 e Reply | Reply with quote | Quote
 
 
0 # Quake 2009-12-02 08:02 as Reply | Reply with quote | Quote
 
 
0 # Quake 2009-12-02 08:09 gh Reply | Reply with quote | Quote
 

Add comment


Security code
Refresh