Cobertura module: Ignoring only works on top-level classes?

154 views
Skip to first unread message

maenu

unread,
Sep 16, 2011, 10:12:18 AM9/16/11
to play-framework
I'm using Play 1.2.3 and the Cobertura module 2.2.
I can't get the cobertura module to ignore classes that are not on top-
level, e.g. controllers.CRUD. I tried to ignore classes that are not
written by me with this:

cobertura.ignore=DocViewerPlugin,helpers.CheatSheetHelper,controllers.PlayDocumentation,controllers.Cobertura,controllers.CRUD,controllers.Secure

But only DocViewerPlugin does get ignored. Trying it with unqualified
class names didn't help. Is there any way to make this work I'm
missing?

julien bille

unread,
Sep 18, 2011, 11:30:38 AM9/18/11
to play-fr...@googlegroups.com
It's a java trap with inner class. For example with secure module, if you watch report you will see:

controllers.Secure
controllers.Secure$Security
controllers.Security


For ignore it completely:

cobertura.ignore=controllers.Secure,controllers.Secure$Security,controllers.Security                                                                                                                 




2011/9/16 maenu <maen...@gmx.ch>

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.


maenu

unread,
Sep 18, 2011, 12:20:28 PM9/18/11
to play-framework
Sweet, that works just fine. Thanks a lot.

On Sep 18, 5:30 pm, julien bille <julien.bi...@gmail.com> wrote:
> It's a java trap with inner class. For example with secure module, if you
> watch report you will see:
>
> controllers.Secure
> controllers.Secure$Security
> controllers.Security
>
> For ignore it completely:
>
> cobertura.ignore=controllers.Secure,controllers.Secure$Security,controllers.Security
>
> 2011/9/16 maenu <maenu...@gmx.ch>

Brian Nesbitt

unread,
Sep 20, 2011, 8:51:25 AM9/20/11
to play-fr...@googlegroups.com

julien bille

unread,
Sep 20, 2011, 6:16:32 PM9/20/11
to play-fr...@googlegroups.com
Not very pleasant for me...
Next time open a git issue , send me an email or whatever, please. It's just more efficient like that.

Anyway, I've considered your comments and put in on next version.


2011/9/20 Brian Nesbitt <br...@nesbot.com>

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/Yyf3pUuS5m8J.

Brian Nesbitt

unread,
Sep 20, 2011, 9:10:26 PM9/20/11
to play-fr...@googlegroups.com
Like I said in the post, it wasn't anything against you or the module and I continue to use it each day.  One of the things that I continue to enjoy (and keeps me excited) about the play environment here is the willingness and number of people that contribute to the framework and help others.  Its actually one of the reasons I started the blog, to post about play framework topics as another way of contributing back.

The post is really meant to help others that had some of the (small) issues I had when setting up the module.  Since that first day I haven't had any issues and I hope the post can help others get up and running more quickly.

Bing Ran

unread,
Sep 20, 2011, 9:45:18 PM9/20/11
to play-fr...@googlegroups.com


在 2011-9-21,6:16,julien bille <julien...@gmail.com> 写道:

Not very pleasant for me...

I don't get it honestly.
Reply all
Reply to author
Forward
0 new messages