Mojo's Cobertura Maven Plugin
  1. Mojo's Cobertura Maven Plugin
  2. MCOBERTURA-17

Cobertura Plugin (codehaus mojo) initial release

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      None
    • Number of attachments :
      1

      Description

      Here is the initial release of the Cobertura plugin for maven 2.
      It's mostly complete and documented.

      It lacks 1 piece of functionality, that I cannot figure out.

      The instrumented classes get packaged in the package phase.
      I do not know how to prevent that.

        Activity

        Hide
        Carlos Sanchez added a comment -

        Have you seen the files at http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/cobertura-maven-plugin/ ?

        And you probably can use the clover plugin as example

        Show
        Carlos Sanchez added a comment - Have you seen the files at http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/cobertura-maven-plugin/ ? And you probably can use the clover plugin as example
        Hide
        Joakim Erdfelt added a comment -

        Yes, I have seen the files in the mojo-sandbox.

        I started with them, but after a dozen or so refactorings and best practices in mojo development, they no longer resemble the original donation.

        I credit the original donator (Will Gwaltney) in the pom and the code.

        I have plenty of experience with Cobertura and have made greate strides in bringing this mojo up to speed with both Cobertura and the Maven Mojo framework.

        The design I settled on avoids some of the pitfalls with large projects that the original design contained.
        My patch against jcoverage, to handle large projects, inspired the fork of jcoverage that is now called Cobertura.

        The clover plugin is a good example, but it appears that Clover instruments the source code before the compile, unlike cobertura, which instruments the compiled classes (via the ASM library).
        Based on my limited ability to run the clover plugin, it appears that the clover plugin also suffers from the instrumented classes in the package syndrome that I am facing with the cobertura plugin.
        I am attempting to obtain a clover license to verify this.

        The jcoverage plugin (which should have been a good example) doesn't even compile anymore, due to a missing AbstractPlugin class. shrug

        Show
        Joakim Erdfelt added a comment - Yes, I have seen the files in the mojo-sandbox. I started with them, but after a dozen or so refactorings and best practices in mojo development, they no longer resemble the original donation. I credit the original donator (Will Gwaltney) in the pom and the code. I have plenty of experience with Cobertura and have made greate strides in bringing this mojo up to speed with both Cobertura and the Maven Mojo framework. The design I settled on avoids some of the pitfalls with large projects that the original design contained. My patch against jcoverage, to handle large projects, inspired the fork of jcoverage that is now called Cobertura. The clover plugin is a good example, but it appears that Clover instruments the source code before the compile, unlike cobertura, which instruments the compiled classes (via the ASM library). Based on my limited ability to run the clover plugin, it appears that the clover plugin also suffers from the instrumented classes in the package syndrome that I am facing with the cobertura plugin. I am attempting to obtain a clover license to verify this. The jcoverage plugin (which should have been a good example) doesn't even compile anymore, due to a missing AbstractPlugin class. shrug
        Hide
        Carlos Sanchez added a comment -

        Cool, please watch the mojo-dev mailing list where we'll hold a vote to add the plugin and yourself to the project

        Show
        Carlos Sanchez added a comment - Cool, please watch the mojo-dev mailing list where we'll hold a vote to add the plugin and yourself to the project
        Hide
        Carlos Sanchez added a comment -

        Added to the sandbox

        Show
        Carlos Sanchez added a comment - Added to the sandbox

          People

          • Assignee:
            Carlos Sanchez
            Reporter:
            Joakim Erdfelt
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: