
|
strange branch coverage
Hi, I have a strange branch coverage in sonar. In fact when a launch cobertura:cobertura on my project I have a 100% branch coverage. But after a sonar:sonar I have only 30% !!! Does anybody have strange behavior with cobertura too ?
I'm using sonar 1.11. Thanks Guillaume Boucherie Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong."
|

|
Re: strange branch coverage
Hello Guillaume, What is the version of Cobertura you run manually ? Olivier
On Sun, Oct 11, 2009 at 11:15 PM, Guillaume Boucherie <guillaume.boucherie@...> wrote:
Hi,
I have a strange branch coverage in sonar. In fact when a launch cobertura:cobertura on my project I have a 100% branch coverage. But after a sonar:sonar I have only 30% !!! Does anybody have strange behavior with cobertura too ?
I'm using sonar 1.11.
Thanks
Guillaume Boucherie Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong."
|

|
Re: strange branch coverage
Hi, It's version 1.9.2 in both case. See attached file. Maybe sonar doesn't use cobertura results for branch coverage calculation ? Or there is a multiple sum of the same branch statements ?
Thanks Guillaume Boucherie Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend."
On Mon, Oct 12, 2009 at 3:10 PM, Olivier Gaudin <gaudol@...> wrote:
Hello Guillaume,
What is the version of Cobertura you run manually ?
Olivier
On Sun, Oct 11, 2009 at 11:15 PM, Guillaume Boucherie <guillaume.boucherie@...> wrote:
Hi,
I have a strange branch coverage in sonar. In fact when a launch cobertura:cobertura on my project I have a 100% branch coverage. But after a sonar:sonar I have only 30% !!! Does anybody have strange behavior with cobertura too ?
I'm using sonar 1.11.
Thanks
Guillaume Boucherie Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong."
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
|

|
Re: strange branch coverage
Hi Guillaume, Up to Sonar 1.11, the coverage calculated with Cobertura Maven plugin was the "line coverage". This is a new feature in Sonar 1.11 [1] to display "line coverage", "branch coverage" and "coverage" (which is a mix of line and branch coverages).
Freddy [1] - http://sonar.codehaus.org/sonar-111-in-screenshots/On Mon, Oct 12, 2009 at 7:23 PM, Guillaume Boucherie <guillaume.boucherie@...> wrote:
Hi,
It's version 1.9.2 in both case. See attached file. Maybe sonar doesn't use cobertura results for branch coverage calculation ?
Or there is a multiple sum of the same branch statements ?
Thanks
Guillaume Boucherie Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend."
On Mon, Oct 12, 2009 at 3:10 PM, Olivier Gaudin <gaudol@...> wrote:
Hello Guillaume,
What is the version of Cobertura you run manually ?
Olivier
On Sun, Oct 11, 2009 at 11:15 PM, Guillaume Boucherie <guillaume.boucherie@...> wrote:
Hi,
I have a strange branch coverage in sonar. In fact when a launch cobertura:cobertura on my project I have a 100% branch coverage. But after a sonar:sonar I have only 30% !!! Does anybody have strange behavior with cobertura too ?
I'm using sonar 1.11.
Thanks
Guillaume Boucherie Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong."
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
|

|
Re: strange branch coverage
Oups Guillaume, forget my previous answer, I didn't read correctly your email. I need to deeply investigate your issue. On Tue, Oct 13, 2009 at 9:23 PM, Freddy Mallet <freddy.mallet@...> wrote:
Hi Guillaume,
Up to Sonar 1.11, the coverage calculated with Cobertura Maven plugin was the "line coverage". This is a new feature in Sonar 1.11 [1] to display "line coverage", "branch coverage" and "coverage" (which is a mix of line and branch coverages).
Freddy
[1] - http://sonar.codehaus.org/sonar-111-in-screenshots/
Hi, It's version 1.9.2 in both case. See attached file.
Maybe sonar doesn't use cobertura results for branch coverage calculation ?
Or there is a multiple sum of the same branch statements ?
Thanks Guillaume Boucherie Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend."
On Mon, Oct 12, 2009 at 3:10 PM, Olivier Gaudin <gaudol@...> wrote:
Hello Guillaume,
What is the version of Cobertura you run manually ?
Olivier
On Sun, Oct 11, 2009 at 11:15 PM, Guillaume Boucherie <guillaume.boucherie@...> wrote:
Hi,
I have a strange branch coverage in sonar. In fact when a launch cobertura:cobertura on my project I have a 100% branch coverage. But after a sonar:sonar I have only 30% !!! Does anybody have strange behavior with cobertura too ?
I'm using sonar 1.11.
Thanks
Guillaume Boucherie Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong."
|

|
Re: strange branch coverage
Hi Guillaume, Could you send your target/site/cobertura/cobertura.xml file in order to help us understand the issue (or only part of this file which concerns the MOS6502 file) ? Thanks Freddy
On Mon, Oct 12, 2009 at 7:23 PM, Guillaume Boucherie <guillaume.boucherie@...> wrote:
Hi,
It's version 1.9.2 in both case. See attached file. Maybe sonar doesn't use cobertura results for branch coverage calculation ? Or there is a multiple sum of the same branch statements ?
Thanks
Guillaume Boucherie Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend."
On Mon, Oct 12, 2009 at 3:10 PM, Olivier Gaudin <gaudol@...> wrote:
Hello Guillaume,
What is the version of Cobertura you run manually ?
Olivier
On Sun, Oct 11, 2009 at 11:15 PM, Guillaume Boucherie <guillaume.boucherie@...> wrote:
Hi,
I have a strange branch coverage in sonar. In fact when a launch cobertura:cobertura on my project I have a 100% branch coverage. But after a sonar:sonar I have only 30% !!! Does anybody have strange behavior with cobertura too ?
I'm using sonar 1.11.
Thanks
Guillaume Boucherie Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong."
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
|

|
Re: strange branch coverage
Hi, I don't find cobertura.xml file in my target directory, just html files. I zipped into cobertura.zip. And I zipped my project (just one class in fact) into jems.zip. CletteBou aka Crevard
Pablo Picasso - "Computers are useless. They can only give you answers."
On Thu, Oct 15, 2009 at 9:54 AM, Freddy Mallet <freddy.mallet@...> wrote:
Hi Guillaume,
Could you send your target/site/cobertura/cobertura.xml file in order to help us understand the issue (or only part of this file which concerns the MOS6502 file) ?
Thanks Freddy
Hi, It's version 1.9.2 in both case. See attached file. Maybe sonar doesn't use cobertura results for branch coverage calculation ? Or there is a multiple sum of the same branch statements ?
Thanks Guillaume Boucherie Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend."
On Mon, Oct 12, 2009 at 3:10 PM, Olivier Gaudin <gaudol@...> wrote:
Hello Guillaume,
What is the version of Cobertura you run manually ?
Olivier
On Sun, Oct 11, 2009 at 11:15 PM, Guillaume Boucherie <guillaume.boucherie@...> wrote:
Hi,
I have a strange branch coverage in sonar. In fact when a launch cobertura:cobertura on my project I have a 100% branch coverage. But after a sonar:sonar I have only 30% !!! Does anybody have strange behavior with cobertura too ?
I'm using sonar 1.11.
Thanks
Guillaume Boucherie Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong."
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
|

|
Re: strange branch coverage
Hi Guillaume, I've analyzed your jems project and get the same results in Sonar, HTML Cobertura report and XML report for MOS6502.java branch coverage : 32% http://skitch.com/freddymallet/ndch3/mos6502-sonar
http://skitch.com/freddymallet/ndch9/mos6502-cobertura-htmlhttp://skitch.com/freddymallet/ndc7d/mos6502-cobertura-xml
But, the cobertura branch coverage is wrong due to Cobertura open bug 2075537 (branch coverage is badly calculated on switch block) : http://sourceforge.net/tracker/index.php?func=detail&aid=2075537&group_id=130558&atid=720015
Which command did you launch and which Cobertura version did you use, to get 100% code coverage on MOS6502.java file ? I've created ticket http://jira.codehaus.org/browse/SONAR-1211 to follow this bug.
Thanks for your help, Freddy On Thu, Oct 15, 2009 at 9:46 PM, Guillaume Boucherie <guillaume.boucherie@...> wrote:
Hi,
I don't find cobertura.xml file in my target directory, just html files. I zipped into cobertura.zip.
And I zipped my project (just one class in fact) into jems.zip.
CletteBou aka Crevard
Pablo Picasso - "Computers are useless. They can only give you answers."
On Thu, Oct 15, 2009 at 9:54 AM, Freddy Mallet <freddy.mallet@...> wrote:
Hi Guillaume,
Could you send your target/site/cobertura/cobertura.xml file in order to help us understand the issue (or only part of this file which concerns the MOS6502 file) ?
Thanks Freddy
Hi, It's version 1.9.2 in both case. See attached file. Maybe sonar doesn't use cobertura results for branch coverage calculation ? Or there is a multiple sum of the same branch statements ?
Thanks Guillaume Boucherie Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend."
On Mon, Oct 12, 2009 at 3:10 PM, Olivier Gaudin <gaudol@...> wrote:
Hello Guillaume,
What is the version of Cobertura you run manually ?
Olivier
On Sun, Oct 11, 2009 at 11:15 PM, Guillaume Boucherie <guillaume.boucherie@...> wrote:
Hi,
I have a strange branch coverage in sonar. In fact when a launch cobertura:cobertura on my project I have a 100% branch coverage. But after a sonar:sonar I have only 30% !!! Does anybody have strange behavior with cobertura too ?
I'm using sonar 1.11.
Thanks
Guillaume Boucherie Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong."
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
|