View Source

{hudson-plugin-info:pluginId=rubyMetrics}
{excerpt}Ruby metric reports for Hudson. [Rcov|http://eigenclass.org/hiki.rb?rcov], Rails stats, Rails notes and [Flog|http://ruby.sadi.st/Flog.html].{excerpt}
h2. 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:

  !rcovConfig.png!
 
If the build was successfuly, hudson generates the trend report and the graph:
\\ !rcovTrendReport2.png!
 
\\

 
\\ !rcovReport.png!

h2.  


h2. Rails stats support

Once the plugin is installed we can publish rails stats reports checking the right option:
\\ !railsStatsConfig.png!\\

 Hudson generates a report by each successful build and keeps an historic version while the project goes forward:
\\ !railsStatsReport.png!
 
\\
\\

h2. Rails notes support

h2. 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

!flog.png!



\\
\\
\\
\\
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]

h3. Chagelog

h4. 1.4 (05-01-2010)

* Flog support added
* Fixes rcov parser support issues

h4. 1.3 (30-10-2009)

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

h4. 1.2.3 (04-05-2009)

* fixes some bugs.  

h4. 1.2.2 (24-09-2008)

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

h4. 1.2 (18-09-2008)

* Rails stats support added
* Refactored to use common classes

h4. 1.1 (12-09-2008)

* Solves a bug with the rcov report percentages.
\\

h3.  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.-

h3.



h2.  


h3.  


h3.  


h4.