Missing coverage in cobertura?

View: New views
2 Messages — Rating Filter:   Alert me  

Missing coverage in cobertura?

by Sveen, Anders Rene :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,

I'm testing Sonar for the first time, and it looks quite impressive.

On the Cloud page one of my classes shows up, and when I look into that I see that theres is almost no test coverage. I have however written a test for that class recently, so I got a bit suspicious.
 
Problem: When I compare the coverage from EclEmma in Eclipse with the one by Cobertura it is less. I also know that Sonar ran that particular test, so the coverage should show up. Any ideas what might influence this?

I have a fairly large multi module project so I guess that might impact it but I'm not sure.



Thanks,
Anders,


Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini Norge AS, a company registered in Norway (number 943574537) whose registered office is at Hoffsveien 1 D - Pb. 475, Skøyen – 0214 Oslo.

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.




Re: Missing coverage in cobertura?

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Anders,

Could you confirm that you're using Sonar 1.11.1 ?

Here are few hints to help you understand the differences :
  - Emma doesn't calculate the branch coverage, so when you compare results from Emma and Cobertura make sure to compare the line coverage.
  - In both eclipse and Sonar you can see which lines are covered and which ones are not. Could you visually identify the differences ?
  - Sonar provides the coverage on the whole file and not only on the main class. If your file contains several class definitions, make sure to compare the same things between EclEmma and Sonar.

Hope it helps
Freddy


On Fri, Nov 13, 2009 at 10:17 AM, Sveen, Anders Rene <anders.sveen@...> wrote:
Hi,

I'm testing Sonar for the first time, and it looks quite impressive.

On the Cloud page one of my classes shows up, and when I look into that I see that theres is almost no test coverage. I have however written a test for that class recently, so I got a bit suspicious.
 
Problem: When I compare the coverage from EclEmma in Eclipse with the one by Cobertura it is less. I also know that Sonar ran that particular test, so the coverage should show up. Any ideas what might influence this?

I have a fairly large multi module project so I guess that might impact it but I'm not sure.



Thanks,
Anders,


Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini Norge AS, a company registered in Norway (number 943574537) whose registered office is at Hoffsveien 1 D - Pb. 475, Skøyen – 0214 Oslo.

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.