4

I have a grails 2.3.7 project that is using cobertura plugin, it works perfectly fine.

But when I upgraded to 2.3.9 it stopped working.

This is some of the relevant parts of the stacktrace that I get.

Error Cobertura: Error reading from object stream.
java.lang.ClassNotFoundException: net.sourceforge.cobertura.coveragedata.PackageData
...
Cobertura: Coverage data file /home/user/cobertura.ser either does not exist or is not readable.  Creating a new data file.
froi
  • 7,268
  • 5
  • 40
  • 78
  • did you tried cleaning the project with grails clean? – luisZavaleta May 30 '14 at 03:25
  • @luisZavaleta Yes I did, numerous times. – froi May 30 '14 at 09:05
  • Check the version of the plugins in your BuildConfig file, some plugins have parameters are relative to the version, for example: -- runtime ":hibernate:$grailsVersion" -- will work with grails 2.2 but not with grails 2.3. – luisZavaleta May 30 '14 at 19:16

1 Answers1

4

From the info page of grails-coverage-plugin current version (2.0.3-1):

This plugin will generate code coverage reports using Cobertura.

 Currently Grails Forked mode is not supported.

You should to remove forked options from Build.config. Removing only the test option is enough.

AA.
  • 4,496
  • 31
  • 35