Basically, every class, whether it be a Java or Groovy, was reported to have 0% coverage. The exception I found in the build log:
Results :Anyone who runs into a similar problem can resolve it by upgrading to version 2.3 of the plugin which uses Cobertura 1.9.2. Upgrading to 1.9.2 would likely resolve the issue for non-Maven users too.
Tests run: 31, Failures: 0, Errors: 0, Skipped: 0
Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
at java.io.File.deleteOnExit(File.java:939)
at net.sourceforge.cobertura.util.FileLocker.(FileLocker.java:80)
at net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:230)
at net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:31)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: Shutdown in progress
at java.lang.Shutdown.add(Shutdown.java:62)
at java.lang.System$2.registerShutdownHook(System.java:1146)
at java.io.DeleteOnExitHook.(DeleteOnExitHook.java:20)
... 5 more
Thank you. Your suggestion worked.
ReplyDeleteAaron Stewart
Thanks for sharing!
ReplyDeleteThanks for your suggestion. This worked well
ReplyDeleteey!! Thanks!! I had the same problem, but I were using Ant...
ReplyDelete