On 7/26/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
Does anyone know how to generate a code coverage report when using
AspectJ in a project?
The Clover plugin wants to rewrite and recompile the code, which
probably won't play well with all things aspect.
seems not possible:
[quote]
Indeed running AspectJ AFTER Clover works. I'm using that for now, so
that I at least have SOME Clover data.
The thing I would like though, is to run AspectJ BEFORE Clover runs,
so I also have Clover data on the AspectJ-sources!
As I see it, there are 2 ways to do this:
1) AspectJ weaves his new files and writes them out as sources so
Clover can work on them. The problem here will be that
Clover can't show the reports on AspectJ-files, but rather on the
weaved files. It's a solution, but what would be really great
is:
2) Clover examines the AspectJ sources and adds his statements to
those files. Then AspectJ can do his normal thing and
Clover's reports should show the coverage in the correct files and
calculate the EXACT amount of times the statements have
been called.
Unfortunately I already heard from Cenqua that atm Clover doesn't know
how to handle AspectJ sources... So I think that the
plugin will have the same problems...
[quote]
Is there a Maven2 plugin for emma or cobetura?
cobertura, and it plays well with aspectj afaik, you have to make sure
the aspectj plugin doesn't recompile from sources for what I read in
the cobertura mailing list
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]