|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
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.
Could it have something to do with the Comparator-Interface?
I would be very thankful for an explanation and a way to fix this! Cheers,
------------------------------------------------------------------------- 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"?!?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.
Could it have something to do with the
Comparator-Interface? I would be very thankful for an explanation and a way to fix this! Cheers, ------------------------------------------------------------------------- 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"?!?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"?!?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 |
|
|
|
| Free Forum Powered by Nabble | Forum Help |