Re: [aspectj-users] AspectJ and code coverage?

2009-12-30 Thread Wim Deblauwe
Thank you for putting this up on the wiki, I will test it when I get back to work next week. 2009/12/29 Simone Gianni > Oh, by the way, I filled the Wiki with instructions on various ways of > compiling AspectJ projects using maven, how to force a different version of > AspectJ, how to use Cober

Re: [aspectj-users] AspectJ and code coverage?

2009-12-29 Thread Simone Gianni
Oh, by the way, I filled the Wiki with instructions on various ways of compiling AspectJ projects using maven, how to force a different version of AspectJ, how to use Cobertura, how to use AJDoc etc.. Nothing incredible, but at least it is all in a single place. Wim, I didn't incurred in your

Re: [aspectj-users] AspectJ and code coverage?

2009-12-29 Thread Simone Gianni
Hi Andy, sorry, I completely missed this mail of yours. It would be an improvement, a low priority one, to review how AspectJ assign source/line number attributes to the code it inlines in classes. This affects not only Cobertura (and any other coverage) reports, but also debugging and stack t

Re: [aspectj-users] AspectJ and code coverage?

2009-12-03 Thread Wim Deblauwe
I will be most grateful Simone! Enjoy your holiday :) 2009/12/3 Simone Gianni > Hi Wim, > I didn't forget about you, I have "Add an example pom.xml for AspectJ + > Cobertura on aj wiki" on my todo list, but found no time yet to do it .. > hopefully I'll manage to find time on Monday cause it's h

Re: [aspectj-users] AspectJ and code coverage?

2009-12-03 Thread Simone Gianni
Hi Wim, I didn't forget about you, I have "Add an example pom.xml for AspectJ + Cobertura on aj wiki" on my todo list, but found no time yet to do it .. hopefully I'll manage to find time on Monday cause it's holiday here in Italy. Simone Wim Deblauwe wrote: Would it be possible to provide a

Re: [aspectj-users] AspectJ and code coverage?

2009-11-30 Thread Wim Deblauwe
Would it be possible to provide a sample project with pom.xml on how to do it? Maybe this can be added to some wiki if there is one of aspectj or you can add it to the mavenuser wiki? 2009/11/30 Simone Gianni > Hi Wim, > I'm using Maven2 + AspectJ + Cobertura successfully, but there are a few >

Re: [aspectj-users] AspectJ and code coverage?

2009-11-30 Thread Andy Clement
Hi Simone, Regarding: > Since AspectJ inlines a few calls inside methods using "line 1" of the target > class file, or the first line of the method, > you'll see cobertura reporting a lot of hits on this lines, even if they does > not contain any apparently useful code. Do you think there is s

Re: [aspectj-users] AspectJ and code coverage?

2009-11-30 Thread Simone Gianni
Hi Wim, I'm using Maven2 + AspectJ + Cobertura successfully, but there are a few caveats. I'm currently weaving first and then instrumenting with cobertura. If I remember correctly, I'm cobertura-instrumenting the entire jar. I could do this cause in our setup coverage reports are executed in

Re: [aspectj-users] AspectJ and code coverage?

2009-11-28 Thread Michael McCray
Hi, I don't know if there should be a difference, but my environment does not have Maven, just the eclipse plugins. The configuration is just some AspectJ projects and Java projects, the emma is configured for my junit tests, the instrumentation is not in-place. The project code is compile time

Re: [aspectj-users] AspectJ and code coverage?

2009-11-28 Thread oliver
Hello Michael, the plugin works as I tried it today. And there is also a maven plugin available for Emma. But when I tried to generate the reports with it I got a java.lang.IllegalStateException: class [patterntesting.runtime.BrokenAspect] appears to be instrumented already from the Emma plug

Re: [aspectj-users] AspectJ and code coverage?

2009-11-28 Thread Andy Clement
Hi, I did some work recently to ensure AspectJ works better with Cobertura - but I think that was when AspectJ was run after Cobertura (ltw scenario) rather than before. When you say "does not work" - does it crash? or is there a problem with the instrumentation it adds? cheers, Andy 2009/11/28

Re: [aspectj-users] AspectJ and code coverage?

2009-11-28 Thread Michael McCray
I am successfully using Eclpise + AJDT + EclEmma. The coverage does work, but sometimes there are strange consequences of woven code that doesn't get covered, but at least you can get pretty close to what you would expect. It would be nice if it were AspectJ smart. Mike On Sat, Nov 28, 2009 at

Re: [aspectj-users] AspectJ and code coverage?

2009-11-28 Thread Oliver Böhm
Hello, we have the same tool chain (Cobertura/Maven2) and the same problems. At the moment we have disabled Cobertura because we didn't find a workaround. If somebody knows one I would be also interested in. regards, Oliver Am 28.11.2009 um 09:09 schrieb Wim Deblauwe: > Hi, > > is there any

[aspectj-users] AspectJ and code coverage?

2009-11-28 Thread Wim Deblauwe
Hi, is there anybody who is using AspectJ with a code coverage tool. We are using Cobertura and Maven2, but that does not work when you start to add an aspect to your code and you need to use the ajc compiler. I just checked with Atlassian and Clover cannot seem to manage it according to them. Any