Grails and distributed clover coverage

We have a widely distributed build where we are successfully collecting coverage data on all the java classes.

We do this by copying the coverage db to where the tests are going to run, run them, and then copy the results back to a central location for latter reporting.

Works great.

Had a long conversation with Marek about it here:  https://answers.atlassian.com/questions/19146539

Except none of the coverage is showing up for the grails projects.

Turning on debug, verbosity and logging we get this when running the grails tests:

[exec] [clover-setup] globalSliceEnd(com.phoenix.mpm.command.PresenterCommandTests, 1082521, 1, null) [exec] [clover-setup] [flushed per-test recording (null) ]

[exec] [clover-setup] [flushed per-test recording (null) ]

[exec] [clover-setup] [flushed per-test recording (null) ]

 [exec] [clover-setup] [flushed per-test recording (/usr/local/litle-home/int13/output/clover/clover.db8ii7yywy1f2x_3b_q9w3f1_iecilapj.s) ]

Is the above expected?  The null per-test recording seems wrong.

When we generate xml and html reports, there are no signs of any of the grails classes.

Any ideas?

This is with Clover 3.1.12 and Grails 1.3.7 (groovy 1.7)

The beginning of running each test looks like this:

[exec] Running test com.phoenix.mpm.command.PresenterCommandTests...[clover-setup] CLOVER: No profiles defined in instrumented classes. Using standard settings. [exec] [clover-setup] Clover.getRecorder(/usr/local/litle-home/int13/output/clover/clover.db, 1441786611926, 0, 1082603, [InstrumentationProperties={clover.distributed.coverage=null}, cloverSystemProperties={clover.logging.level=debug, clover.initstring=/usr/local/litle-home/int13/output/clover/clover.db, clover.verbose=true, clover.debug=true, clover.license.path=/usr/local/litle-home/int13/cvs/common/javalibs/clover-ant-3.1.12/lib/clover.license}]) resulting in new recorder called from (first 10 stack elements): [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime$1.run(Clover.java:502) [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime$1.run(Clover.java:481) [exec] [clover-setup] java.security.AccessController.doPrivileged(Native Method) [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime.getRecorder(Clover.java:481) [exec] [clover-setup] com_cenqua_clover.Clover.getRecorder(Clover.java:106) [exec] [clover-setup] com.phoenix.mpm.command.PresenterCommandTests.$CLV_R$(PresenterCommandTests.groovy) [exec] [clover-setup] org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:148) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:99) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:48) [exec] [clover-setup] [creating new recorder for /usr/local/litle-home/int13/output/clover/clover.db_1441786611926_0] [exec] [clover-setup] overriding initstring: /usr/local/litle-home/int13/output/clover/clover.db [exec] [clover-setup] Added shutdown hook for registry at /usr/local/litle-home/int13/output/clover/clover.db [exec] [clover-setup] Started recorder for registry at "/usr/local/litle-home/int13/output/clover/clover.db": FixedSizeCoverageRecorder[elements.length=1127098] [exec] [clover-setup] CLOVER: No profiles defined in instrumented classes. Using standard settings. [exec] [clover-setup] Clover.getRecorder(/usr/local/litle-home/int13/output/clover/clover.db, 1441786583611, 0, 1070451, [InstrumentationProperties={clover.distributed.coverage=null}, cloverSystemProperties={clover.logging.level=debug, clover.initstring=/usr/local/litle-home/int13/output/clover/clover.db, clover.verbose=true, clover.debug=true, clover.license.path=/usr/local/litle-home/int13/cvs/common/javalibs/clover-ant-3.1.12/lib/clover.license}]) resulting in new recorder called from (first 10 stack elements): [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime$1.run(Clover.java:502) [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime$1.run(Clover.java:481) [exec] [clover-setup] java.security.AccessController.doPrivileged(Native Method) [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime.getRecorder(Clover.java:481) [exec] [clover-setup] com_cenqua_clover.Clover.getRecorder(Clover.java:106) [exec] [clover-setup] com.phoenix.mpm.command.PresenterCommand.$CLV_R$(PresenterCommand.groovy) [exec] [clover-setup] org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:148) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:99) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:48) [exec] [clover-setup] [creating new recorder for /usr/local/litle-home/int13/output/clover/clover.db_1441786583611_0] [exec] [clover-setup] overriding initstring: /usr/local/litle-home/int13/output/clover/clover.db [exec] [clover-setup] Added shutdown hook for registry at /usr/local/litle-home/int13/output/clover/clover.db [exec] [clover-setup] Started recorder for registry at "/usr/local/litle-home/int13/output/clover/clover.db": FixedSizeCoverageRecorder[elements.length=1127098] [exec] [clover-setup] CLOVER: No profiles defined in instrumented classes. Using standard settings. [exec] [clover-setup] Clover.getRecorder(/usr/local/litle-home/int13/output/clover/clover.db, 1441786582226, 0, 1051326, [InstrumentationProperties={clover.distributed.coverage=null}, cloverSystemProperties={clover.logging.level=debug, clover.initstring=/usr/local/litle-home/int13/output/clover/clover.db, clover.verbose=true, clover.debug=true, clover.license.path=/usr/local/litle-home/int13/cvs/common/javalibs/clover-ant-3.1.12/lib/clover.license}]) resulting in new recorder called from (first 10 stack elements): [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime$1.run(Clover.java:502) [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime$1.run(Clover.java:481) [exec] [clover-setup] java.security.AccessController.doPrivileged(Native Method) [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime.getRecorder(Clover.java:481) [exec] [clover-setup] com_cenqua_clover.Clover.getRecorder(Clover.java:106) [exec] [clover-setup] com.phoenix.mpm.domain.ref.FormatCode.$CLV_R$(FormatCode.groovy) [exec] [clover-setup] org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:148) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:99) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:48) [exec] [clover-setup] [creating new recorder for /usr/local/litle-home/int13/output/clover/clover.db_1441786582226_0] [exec] [clover-setup] overriding initstring: /usr/local/litle-home/int13/output/clover/clover.db [exec] [clover-setup] Added shutdown hook for registry at /usr/local/litle-home/int13/output/clover/clover.db [exec] [clover-setup] Started recorder for registry at "/usr/local/litle-home/int13/output/clover/clover.db": FixedSizeCoverageRecorder[elements.length=1127098] [exec] [clover-setup] CLOVER: No profiles defined in instrumented classes. Using standard settings. [exec] [clover-setup] Clover.getRecorder(/usr/local/litle-home/int13/output/clover/clover.db, 1441786582337, 0, 1051681, [InstrumentationProperties={clover.distributed.coverage=null}, cloverSystemProperties={clover.logging.level=debug, clover.initstring=/usr/local/litle-home/int13/output/clover/clover.db, clover.verbose=true, clover.debug=true, clover.license.path=/usr/local/litle-home/int13/cvs/common/javalibs/clover-ant-3.1.12/lib/clover.license}]) resulting in new recorder called from (first 10 stack elements): [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime$1.run(Clover.java:502) [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime$1.run(Clover.java:481) [exec] [clover-setup] java.security.AccessController.doPrivileged(Native Method) [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime.getRecorder(Clover.java:481) [exec] [clover-setup] com_cenqua_clover.Clover.getRecorder(Clover.java:106) [exec] [clover-setup] com.phoenix.mpm.domain.ref.Transform.$CLV_R$(Transform.groovy) [exec] [clover-setup] org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:148) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:99) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:48) [exec] [clover-setup] [creating new recorder for /usr/local/litle-home/int13/output/clover/clover.db_1441786582337_0] [exec] [clover-setup] overriding initstring: /usr/local/litle-home/int13/output/clover/clover.db [exec] [clover-setup] Added shutdown hook for registry at /usr/local/litle-home/int13/output/clover/clover.db [exec] [clover-setup] Started recorder for registry at "/usr/local/litle-home/int13/output/clover/clover.db": FixedSizeCoverageRecorder[elements.length=1127098] [exec] [clover-setup] globalSliceStart(com.phoenix.mpm.command.PresenterCommandTests, 1082521, 1441786727287) [exec] [clover-setup] CLOVER: No profiles defined in instrumented classes. Using standard settings. [exec] [clover-setup] Clover.getRecorder(/usr/local/litle-home/int13/output/clover/clover.db, 1441786583257, 0, 1066614, [InstrumentationProperties={clover.distributed.coverage=null}, cloverSystemProperties={clover.logging.level=debug, clover.initstring=/usr/local/litle-home/int13/output/clover/clover.db, clover.verbose=true, clover.debug=true, clover.license.path=/usr/local/litle-home/int13/cvs/common/javalibs/clover-ant-3.1.12/lib/clover.license}]) resulting in new recorder called from (first 10 stack elements): [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime$1.run(Clover.java:502) [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime$1.run(Clover.java:481) [exec] [clover-setup] java.security.AccessController.doPrivileged(Native Method) [exec] [clover-setup] com_cenqua_clover.Clover$InitialisedRuntime.getRecorder(Clover.java:481) [exec] [clover-setup] com_cenqua_clover.Clover.getRecorder(Clover.java:106) [exec] [clover-setup] com.phoenix.mpm.PresenterType.$CLV_R$(PresenterType.groovy) [exec] [clover-setup] org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:148) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:99) [exec] [clover-setup] org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:48) [exec] [clover-setup] [creating new recorder for /usr/local/litle-home/int13/output/clover/clover.db_1441786583257_0] [exec] [clover-setup] overriding initstring: /usr/local/litle-home/int13/output/clover/clover.db [exec] [clover-setup] Added shutdown hook for registry at /usr/local/litle-home/int13/output/clover/clover.db [exec] [clover-setup] Started recorder for registry at "/usr/local/litle-home/int13/output/clover/clover.db": FixedSizeCoverageRecorder[elements.length=1127098] [exec] [clover-setup] globalSliceEnd(com.phoenix.mpm.command.PresenterCommandTests, 1082521, 1, null) [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (/usr/local/litle-home/int13/output/clover/clover.db8ii7yywy1f2x_3b_q9w3f1_iecilapj.s) ] [exec] [clover-setup] [flushed per-test recording (null) ] [exec] [clover-setup] [flushed per-test recording (null) ]


Thank you,

-Clark 


1 answer

This widget could not be displayed.

Hello, 

The null message isn't connected with coverage reporter but with per-test coverage. Are you using this feature or have you disabled it? What coverage reporter are you using? I suspect it's default Fixed but could you confirm that?

You're saying:

We do this by copying the coverage db to where the tests are going to run, run them, and then copy the results back to a central location for latter reporting.

Works great.

And line below:

Except none of the coverage is showing up for the grails projects.

Are you referring to two completely different projects or the project is mixed Java/Groovy(Grails) code ?

 

Could you attach here the file containing full debug log file with  clover.logging.level=debug ? If you're worried about confidentiality please rise an issue on support portal.

 

Cheers,

Grzegorz Lewandowski 

Missed your response on this, just opened a support ticket it for it:

 

https://support.atlassian.com/servicedesk/customer/portal/13/CLV-6279

 

 

 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

139 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you