Ruby metrics plugin

Plugin Information

Plugin ID rubyMetrics
Latest Release 1.4.1
Latest Release Date Aug 10, 2010
Changes via Fisheye In Latest Release
Since Latest Release
Maintainer(s) n/a (id: david)
Issue Tracking Open Issues

Ruby metric reports for Hudson. Rcov, Rails stats, Rails notes and Flog.

Rcov support


Rcov plugin parses rcov html report files and shows it on hudson with a trend graph.

Once we've installed the rubyMetrics plugin, we have to introduce the output report directory into the job configuration:

 
 
If the build was successfuly, hudson generates the trend report and the graph:

 

 

 

Rails stats support

Once the plugin is installed we can publish rails stats reports checking the right option:

 Hudson generates a report by each successful build and keeps an historic version while the project goes forward:

 

Rails notes support

Flog support

Flog measures code complexity. It shows you the most torturous code you wrote.

Check the right option in your job's configuration and add the directories that you want to monitorize, i.e app/models





AN ALTERNATIVE TO THIS PLUGIN: If you can't get this to work, see the guide I wrote at: http://wiki.hudson-ci.org/display/HUDSON/Configuring+a+Rails+build

Chagelog

1.4 (05-01-2010)

  • Flog support added
  • Fixes rcov parser support issues

1.3 (30-10-2009)

  • Rails notes support added
  • Rails stats publisher allows to choose base directory.

1.2.3 (04-05-2009)

  • fixes some bugs.  

1.2.2 (24-09-2008)

  • choose different rake version when we configure Rails stats publisher.
  • added rcov metrics configuration and health report.

1.2 (18-09-2008)

  • Rails stats support added
  • Refactored to use common classes

1.1 (12-09-2008)

  • Solves a bug with the rcov report percentages.

 Todo

  • Clean css and make the reports more user friendly 
  • Choose different rake version. Currently it chooses the default version, the Rake plugin should be modified in order to extract the versions select list to a template.

 

 

 

 

Labels:

plugin-report plugin-report Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. May 05, 2009

    Karl Baum says:

    Getting the following exception when I try to install: java.io.IOException: Dep...

    Getting the following exception when I try to install:

    java.io.IOException: Dependency rake (1.5) doesn't exist
        at hudson.ClassicPluginStrategy.loadPluginDependencies(ClassicPluginStrategy.java:318)
        at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:183)
        at hudson.PluginManager.<init>(PluginManager.java:154)
        at hudson.model.Hudson.<init>(Hudson.java:541)
        at hudson.WebAppMain$2.run(WebAppMain.java:191)

    Hudson: 1.303
    Ruby: 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]
    Java: 1.5.0_16
    RubyMetrics: 1.2.3

    Anyone run into this one before?

    thx.

    1. Jan 18, 2010

      Erika Brice says:

      I believe you need to install the Hudson Rake plugin .  I experienced a sim...

      I believe you need to install the Hudson Rake plugin .  I experienced a similar error on Windows after installing v1.4 of RubyMetrics; and installing v1.6.2 of the Rake plugin resolved the issue.  Hope this helps.

  2. Aug 27

    chris moscardini says:

    These are great. Thanks for the hard work. And of course I have a feature reques...

    These are great. Thanks for the hard work. And of course I have a feature request. It would be great if the flog plugin was configurable so that you could display/graph just the method complexities. Its hard to weed though the numbers since a single class with 100 methods could have the same score as a single class with one really complicated method.