[jira] Created: (MATH-319) Include "cobertura" target in "build.xml"

4 messages Options
Embed this post
Permalink
JIRA jira@apache.org

[jira] Created: (MATH-319) Include "cobertura" target in "build.xml"

Reply Threaded More More options
Print post
Permalink
Include "cobertura" target in "build.xml"
-----------------------------------------

                 Key: MATH-319
                 URL: https://issues.apache.org/jira/browse/MATH-319
             Project: Commons Math
          Issue Type: Wish
            Reporter: Gilles
            Priority: Minor


Can we have the possibility to run "cobertura" on the unit tests?
This would provide useful hints when chasing bugs.


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

JIRA jira@apache.org

[jira] Updated: (MATH-319) Include "cobertura" target in "build.xml"

Reply Threaded More More options
Print post
Permalink

     [ https://issues.apache.org/jira/browse/MATH-319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles updated MATH-319:
------------------------

    Attachment: build.xml.diff

In case this could be useful, here is the "diff" of the current "build.xml" where I cloned the existing "test" and "compile.tests" targets to create equivalent ones but with the calls to "cobertura". This is for illustration purpose and surely needs to be adapted to the CM project layout policy. [Namely, I introduced an environment variable (SOFCOMMON), but maven may do this differently.]


> Include "cobertura" target in "build.xml"
> -----------------------------------------
>
>                 Key: MATH-319
>                 URL: https://issues.apache.org/jira/browse/MATH-319
>             Project: Commons Math
>          Issue Type: Wish
>            Reporter: Gilles
>            Priority: Minor
>         Attachments: build.xml.diff
>
>
> Can we have the possibility to run "cobertura" on the unit tests?
> This would provide useful hints when chasing bugs.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

JIRA jira@apache.org

[jira] Commented: (MATH-319) Include "cobertura" target in "build.xml"

Reply Threaded More More options
Print post
Permalink
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/MATH-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774685#action_12774685 ]

Henri Yandell commented on MATH-319:
------------------------------------

Cobertura is already hooked up as a part of Maven2:

http://commons.apache.org/math/cobertura/index.html

Adding it to Ant is adding more duplication - generally the Ant builds tend to just be there to support non-Maven users in the basic act of compiling.

> Include "cobertura" target in "build.xml"
> -----------------------------------------
>
>                 Key: MATH-319
>                 URL: https://issues.apache.org/jira/browse/MATH-319
>             Project: Commons Math
>          Issue Type: Wish
>            Reporter: Gilles
>            Priority: Minor
>         Attachments: build.xml.diff
>
>
> Can we have the possibility to run "cobertura" on the unit tests?
> This would provide useful hints when chasing bugs.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

JIRA jira@apache.org

[jira] Closed: (MATH-319) Include "cobertura" target in "build.xml"

Reply Threaded More More options
Print post
Permalink
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/MATH-319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles closed MATH-319.
-----------------------

    Resolution: Won't Fix

Since the "build.xml" is somewhat deprecated, I remove my suggestion.

I've just discovered that I must do
  mvn cobertura:cobertura
to get what I wanted.

Sorry for the noise,
Gilles


> Include "cobertura" target in "build.xml"
> -----------------------------------------
>
>                 Key: MATH-319
>                 URL: https://issues.apache.org/jira/browse/MATH-319
>             Project: Commons Math
>          Issue Type: Wish
>            Reporter: Gilles
>            Priority: Minor
>         Attachments: build.xml.diff
>
>
> Can we have the possibility to run "cobertura" on the unit tests?
> This would provide useful hints when chasing bugs.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.