jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Cobertura Plugin
  • MCOBERTURA-114

Instrumenting Deployment Artifacts (major site doc enhancement and small plugin enhancement)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.4
  • Fix Version/s: 2.5
  • Labels:
    None
  • Environment:
    any
  • Testcase included:
    yes
  • Patch Submitted:
    Yes

Description

It is occasionally useful to measure the code coverage for manual and/or
automated tests which run against a test environment.(Not to be confused with
measuring code coverage of unit tests executed automatically by the
build system.) For example, you may have a set of automated regression
tests written using JMeter, Selenium, etc. which for some reason or
another are not appropriate to run as part of the maven build.

The primary difficulty in supporting the above use case is understanding
what needs done, and then to a limited extent configuring Maven appropriately.
To that end I have added a new "Instrumenting a Deployment Artifact" section
to the Maven Cobertura plugin's site documentation. I have attached a PDF
showing the html rendered version of the enhanced documentation
(source documentation file is in the usual apt format).

In addition to the documentation enhancements, I have extended the instrument goal
to support registering a module's cobertura.ser file as an attached artifact.
This turns out to significantly clean up the child modules of a multi-module
project, which would otherwise be cluttered with build-helper plugin configuration
details.

The attached patch file contains all of my changes. I look forward to a
release in the near future which contains these changes, provided they
are deemed acceptable by the project maintainers.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. PDF File
    additionalMavenDocs.pdf
    02/Nov/09 2:49 PM
    101 kB
    James Carpenter
  2. PDF File
    CoberturaDiagrams.pdf
    02/Nov/09 2:49 PM
    2.41 MB
    James Carpenter
  3. Text File
    deploymentArtifactInstrumentation.patch
    02/Nov/09 2:49 PM
    33 kB
    James Carpenter

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
James Carpenter added a comment - 02/Nov/09 3:01 PM

I have also included some scans of hand-drawn diagrams I drew to complement the text.
The documentation text in the patch does not currently link to or otherwise include the hand-drawn diagrams. I created
the hand-drawn diagrams for use inside my company after I had finished creating the patch.

Show
James Carpenter added a comment - 02/Nov/09 3:01 PM I have also included some scans of hand-drawn diagrams I drew to complement the text. The documentation text in the patch does not currently link to or otherwise include the hand-drawn diagrams. I created the hand-drawn diagrams for use inside my company after I had finished creating the patch.
Hide
Permalink
Benson Margulies added a comment - 12/Apr/11 8:20 AM

I applied this patch and the test fails with an NPE. If you're out there, can you have a look? I'm going to see if I can fix it.

Show
Benson Margulies added a comment - 12/Apr/11 8:20 AM I applied this patch and the test fails with an NPE. If you're out there, can you have a look? I'm going to see if I can fix it.
Hide
Permalink
Benson Margulies added a comment - 12/Apr/11 8:28 AM

Oh, I had a patch .rej, it's OK Now.

Show
Benson Margulies added a comment - 12/Apr/11 8:28 AM Oh, I had a patch .rej, it's OK Now.
Hide
Permalink
Benson Margulies added a comment - 12/Apr/11 8:28 AM

fixed in 13886.

Show
Benson Margulies added a comment - 12/Apr/11 8:28 AM fixed in 13886.

People

  • Assignee:
    Benson Margulies
    Reporter:
    James Carpenter
Vote (0)
Watch (0)

Dates

  • Created:
    02/Nov/09 2:49 PM
    Updated:
    12/Apr/11 8:28 AM
    Resolved:
    12/Apr/11 8:28 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.