Issue Details (XML | Word | Printable)

Key: HUDSON-3424
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: kohsuke
Reporter: marcingalazka
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hudson

Emma reports not present in M2 type jobs

Created: 04/Apr/09 08:13 AM   Updated: 07/Apr/09 02:20 AM   Resolved: 06/Apr/09 07:11 PM
Component/s: emma
Affects Version/s: current
Fix Version/s: None

File Attachments: 1. File emma_m2_job.diff (3 kB)

Environment: Platform: All, OS: All


 Description  « Hide

Emma plugin shows a code coverage trend/report only for free-style jobs. Maven
2 jobs does not display such reports on the main project page.



Sort Order: Ascending order - Click to sort in descending order
marcingalazka added a comment - 04/Apr/09 08:23 AM

Due to usage of Project/Build classes (instead AbstractProject/AbstractBuild),
a EmmaProjectAction is not registered as a project action for M2 jobs. An
attached patch fixes this. Additionaly a base class for EmmaPublisher is
changed from Publisher to Recorder.

Diff generated against trunk/hudson/plugins/emma.


marcingalazka added a comment - 04/Apr/09 08:27 AM

Created an attachment (id=646)
Patch


kohsuke added a comment - 06/Apr/09 04:55 PM

Cool. I'll apply the patch.

If you are not already a Hudson committer, would you be interested in becoming
one so that you can hack the plugins more easily?


scm_issue_link added a comment - 06/Apr/09 07:11 PM

Code changed in hudson
User: : kohsuke
Path:
trunk/hudson/plugins/emma/src/main/java/hudson/plugins/emma/EmmaProjectAction.java
trunk/hudson/plugins/emma/src/main/java/hudson/plugins/emma/EmmaPublisher.java
http://fisheye4.cenqua.com/changelog/hudson/?cs=16890
Log:
[FIXED HUDSON-3424] Applied a contributed patch


marcingalazka added a comment - 07/Apr/09 02:20 AM

I could contribute few additional (rather trivial) fixes/enchancements to Emma
Plugin. I'm still learning a plugin architecture...

On the other hand I'm particulary interested in two, a bit more involving,
areas:

  • aggregated report from multi module M2 projects. I think that we need a
    clover:aggregate-like goal anyway. From what I've seen Sonatype folks are
    working on another-one-emma-maven-plugin, maybe we should bug them.
  • implementing a M2 reporter, so for native M2 jobs the plugin could pick up a
    report location automatically.