It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

why is clover showing green on gray?

Michele Zamparelli Jun 17, 2016

I am evaluating Clover for a purchase.

There are multiple cases where, although no specific configuration is supplied (like exclusions), some part of a code block is marked as green, whereas all the rest has gray  color marking (which should mean exclusion, see picture in attachment). image2016-6-17 13:53:51.png

In the above, how can lines 16 and 18 be grayed out ?

 

How can that be? This is obtained using Grails and the Clover grails plug-in.

 

CloverStrangeBehavior.PNG

 

This behavior seems to contract what show in the legend and to be somewhat counterintuitive.

Any help would be appreciated. thanks.

 

 

2 answers

0 votes
Marek Parfianowicz Atlassian Team Jun 18, 2016

Hi Michele,

Indeed, Clover should show coverage for line #16 and #18 in Beatles and line #23 and #24 in ECycleStep. 

It seems to be a software bug. I noticed that in Beatles class you have the ';' at the end of the line #15 and #17, while for others not. It's looks like Clover "compacts" several statements into one. I guess that something have been changed in the AST (abstract syntax tree) in Groovy compiler, which Clover does not handle.

Could you please tell what Clover, Grails and Groovy versions do you use?

Could you please check if the same problem occurs also in Clover 4.1.1, Groovy 2.4.3 and Grails 2.5.0 (these are the highest versions of Groovy/Grails against which Clover 4.1.1 was tested before it was released).

I found that in Grails 2.5.1 the Groovy version was bumped to 2.4.4 (see https://github.com/grails/grails-core/issues/9079).

Cheers

Michele Zamparelli Jun 20, 2016

I confirm that the same behavior/bug is exhibited with grails 2.5.0 /Groovy 2.4.3.

Marek Parfianowicz Atlassian Team Jun 20, 2016

I reported a bug here: https://jira.atlassian.com/browse/CLOV-1953. You can add yourself as a watcher to get email notifications.

0 votes
Michele Zamparelli Jun 19, 2016

We are using grails 2.5.3. I think it exhibits the same behavior with 2.5.0, but I am not specialist.

I would greatly appreciate if your team could tests the configurations you mention. I have put the code at:

http://webnri.hq.eso.org/downloads/AtlassianClover/Beatles.tgz

It should be rather easy to reproduce.

If confirmed to be a bug, I would in particular like to know

a) the fix schedule

b) if it merely affects the display, but not the numbers.

regards,

 

Michele

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Opsgenie

Handling Opsgenie Alerts

Hi everyone, welcome to the kb articles for Opsgenie FAQs. I'm one of the Technical Support Engineers for Opsgenie who will be providing weekly posts on FAQs from customers.   All alerts are ...

66 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you