Ruby metrics plugin

Plugin Information

Plugin ID rubyMetrics
Latest Release 1.5.1-h-1
Latest Release Date Mar 19, 2014
Sources Github
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla

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, 2010

    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.

  3. Oct 06, 2010

    Kevin Wolf says:

    Ruby metrics doesn't appear to be displaying rcov, rails stats or annotations ch...

    Ruby metrics doesn't appear to be displaying rcov, rails stats or annotations charted on 'unstable' builds.  For example if our defined coverage requirements aren't met, none of the charts are updated.  It also doesn't appear to update the actual coverage report (coverage/index.html).  Is this a known issue?  I didn't see anything open in JIRA.

    Thanks,

    Kevin.

  4. Feb 17, 2011

    Andre Silva says:

    Tried this plugin, but none of the metrics worked out of the box. After some wor...

    Tried this plugin, but none of the metrics worked out of the box.
    After some work, I managed to get rcov to generate graphics, but nothing else..

    I get:

    [workspace] $ flog --help
    Seems flog is not installed. Ensure flog is in your PATH
    Publishing rails stats report...
    Publishing rails notes report...

    I actually have flog installed, and it's in the path: %JRUBY_HOME%/bin is in th path and "$flog" works
    Although it says that it is publishing stats and notes reports, I can't find them anywhere, and they're not being presented in the hudson project page.

    I'm using Hudson ver. 1.395. Am I missing something here?

    1. Apr 19, 2011

      Andre Silva says:

      I managed to get it working... on linux. Apparently it doesn't work on windows. ...

      I managed to get it working... on linux. Apparently it doesn't work on windows.

      Even though, It (stats and tasks) doesn't work if the code is being downloaded from a svn server. I just have to disable the svn project configuration and use the previous downloaded source in the workspace for the plugin to work.. Is this a bug?