« Return to Thread: Code coverage reports - finding name of closure

Re: Code coverage reports - finding name of closure

by Robert Fischer :: Rate this Message:

Reply to Author | View in Thread

You could iterate over AccountController's fields and check the class of the error with the class of
the closure defined on that field.

~~ Robert.

Mike Hugo wrote:

> I'm trying to add an enhancement to the code-coverage plugin that would
> show the name of a closure in the coverage reports.
>
> So for instance, right now the reports show:
> AccountController$_closure1
> AccountController$_closure2
> AccountController$_closure3
> etc...
>
> I'd like it to show
> AccountController.list
> AccountController.edit
> AccountController.create
> etc...
>
> Any thoughts on how I could do this?  I'm guessing I will have to do
> some post processing of the reports, but I'm not positive on how to line
> up AccountController$_closure1 with AccountController.list
>
> This might be a topic for the Groovy list, but I thought I'd start
> here.  Any ideas?
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

--
~~ Robert Fischer.
Smokejumper Consulting  http://smokejumperit.com
Enfranchised Mind Blog  http://enfranchisedmind.com/blog
LinkedIn Profile        http://www.linkedin.com/in/robertfischer
Twitter Feed            http://twitter.com/robertfischer

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Code coverage reports - finding name of closure