Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] AspectJ + Cobetura

Howard,

 Can you try from the ant or make maven plugin to use Cobertura 1.8?

If I am not mistaken, Cobertura 1.7 has explicitly defined AJ attributes, so I can't be sure if the list of those attributes in AJ hasn't been changed since it was created in Cobertura. Cobertura 1.8 is using new ASM's "passtrough" mode for all unknown attributes, so it should work for all AJ attributes as long as they not using anything from class constant pool.

 BTW, what kind of error you are getting from m2 plugin?

 regards,
 Eugene


Howard Lewis Ship wrote:
I'm using the Maven plugin. Version 2.0 of the plugin using Cobertura 1.7:

http://www.ibiblio.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.0/cobertura-maven-plugin-2.0.pom



On 8/1/06, Ron Bodkin <rbodkin@xxxxxxxxxxxxxx> wrote:
I was able to use a fairly recent dev build of Cobertura with AspectJ,
although it still had a few areas where it could do better (e.g., it
reported coverage for declare parents: in an aspect, driving down the
coverage). But it did provide coverage measurements and reports, even in the
aspects...

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Eugene Kuleshov
Sent: Tuesday, August 01, 2006 9:07 AM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] AspectJ + Cobetura

Howard,

  Can you check what version of Cobertura is used by Maven plugin?
AspectJ issues should be fixed in Cobertura 1.7+.
  Though there are some differences in Cobertura 1.7 and 1.8 in regards
to custom AJ attributes support. Cobertura 1.8 is using ASM 2.2.1 which
is using "pass-trough" mode to process unknown/custom attributes (like
those added by AJ).

  I may be also worth to check if it work from Ant...

  regards,
  Eugene


Howard Lewis Ship wrote:
> Has anyone managed to get AspectJ working with Cobetura under Maven 2?
>
> http://cobertura.sourceforge.net/
>
> Cobetura is open source code coverage tool. It does bytecode
> enhancement and trips up over some of the AspectJ bytecode.
>




Back to the top