package name "not covered"?!?

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

package name "not covered"?!?

by Weber, Dennis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

package name "not covered"?!?

Hi,

I am having a rather strange problem, that I can not seem to figure out by myself.

For some reason Cobertura complains that the package name of my Comparator is not covered by my tests.



Bild (Geräteunabhängige Bitmap)

Could it have something to do with the Comparator-Interface?
At least all other Comparators show the same behaviour.
The other classes in the project do not...

I would be very thankful for an explanation and a way to fix this!

Cheers,
Dennis



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

ole0.bmp (132K) Download Attachment

Re: package name "not covered"?!?

by Bennett, Jeffrey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

package name "not covered"?!?
There was a rumor a few months back that this problem would go away if you made the Comparator a static inner class of something else.
 
It has something to do with how the JVM creates the byte code and other people have reported similar things when they have created top-level Comparators.


From: cobertura-devel-bounces@... [mailto:cobertura-devel-bounces@...] On Behalf Of Weber, Dennis
Sent: Monday, April 21, 2008 12:31 PM
To: cobertura-devel@...
Subject: [Cobertura-devel] package name "not covered"?!?

Hi,

I am having a rather strange problem, that I can not seem to figure out by myself.

For some reason Cobertura complains that the package name of my Comparator is not covered by my tests.



Bild (Geräteunabhängige Bitmap)

Could it have something to do with the Comparator-Interface?
At least all other Comparators show the same behaviour.
The other classes in the project do not...

I would be very thankful for an explanation and a way to fix this!

Cheers,
Dennis



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

ole0.bmp (132K) Download Attachment

Re: package name "not covered"?!?

by Dickinson, Ian J. (HP Labs, Bristol, UK) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dennis,
> For some reason Cobertura complains that the package name of
> my Comparator is not covered by my tests.
I've occasionally seen some strange artefacts in the coverage reporting as a result, I think, of incremental compilation. I'm using maven2 on my project, and I've got into the habit of removing all the .class files by doing  'mvn clean' before I run the cobertura plugin. In Eclipse, you can get the same effect through 'Project > Clean ...'

Hth,
Ian


____________________________________________________________
Ian Dickinson   http://www.hpl.hp.com/personal/Ian_Dickinson
HP Laboratories Bristol          mailto:ian.dickinson@...
Hewlett-Packard Limited        Registered No: 690597 England
Registered Office:      Cain Road, Bracknell, Berks RG12 1HN

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: package name "not covered"?!?

by Dickinson, Ian J. (HP Labs, Bristol, UK) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jeffrey Bennett wrote:
> There was a rumor a few months back that this problem
> would go away if you made the Comparator a static inner
> class of something else.

> It has something to do with how the JVM creates the byte
> code and other people have reported similar things when
> they have created top-level Comparators.
It must be more subtle than that, because I get 100% coverage in my Comparators that are defined as top level classes.

Could version be a factor? I'm using Cobertura 1.9 with Sun jdk6u6.

Ian

____________________________________________________________
Ian Dickinson   http://www.hpl.hp.com/personal/Ian_Dickinson
HP Laboratories Bristol          mailto:ian.dickinson@...
Hewlett-Packard Limited        Registered No: 690597 England
Registered Office:      Cain Road, Bracknell, Berks RG12 1HN

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Parent Message unknown Re: package name "not covered"?!?

by Weber, Dennis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried Cobertura 1.8 with jdk5u15 and Cobertura 1.9 with jdk5u15 and
jdk6u5.
All of these combinations result in the same problem.

Cheers,
Dennis


-----Original Message-----
From: cobertura-devel-bounces@...
[mailto:cobertura-devel-bounces@...] On Behalf Of
Dickinson, Ian J. (HP Labs, Bristol, UK)
Sent: Mittwoch, 21. Mai 2008 11:25
To: cobertura-devel@...
Subject: Re: [Cobertura-devel] package name "not covered"?!?

Jeffrey Bennett wrote:
> There was a rumor a few months back that this problem would go away if

> you made the Comparator a static inner class of something else.

> It has something to do with how the JVM creates the byte code and
> other people have reported similar things when they have created
> top-level Comparators.
It must be more subtle than that, because I get 100% coverage in my
Comparators that are defined as top level classes.

Could version be a factor? I'm using Cobertura 1.9 with Sun jdk6u6.

Ian

____________________________________________________________
Ian Dickinson   http://www.hpl.hp.com/personal/Ian_Dickinson
HP Laboratories Bristol          mailto:ian.dickinson@...
Hewlett-Packard Limited        Registered No: 690597 England
Registered Office:      Cain Road, Bracknell, Berks RG12 1HN

------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft Defy all challenges.
Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel