Permalink
Browse files

0.1.1

  • Loading branch information...
1 parent a0c30a8 commit 091bb2db034e6033de8bbb18e9d674f019cc22a1 @fguillen fguillen committed Oct 28, 2010
Showing with 28 additions and 2 deletions.
  1. +26 −0 README.md
  2. +1 −1 Rakefile
  3. +1 −1 views/index.erb.html
View
26 README.md
@@ -0,0 +1,26 @@
+# SimpleCov Rcov Formatter gem
+
+Is a Rcov style formatter for the ruby 1.9+ coverage gem: [SimpleCov](http://github.com/colszowka/simplecov).
+
+The target of this formatter is to cheat on **Hudson** so I can use the [Ruby metrics plugin](http://github.com/hudson/rubymetrics-plugin) with **SimpleCov**.
+
+So if your are looking some kind of workaround to integrate **SimpleCov** with your **Hudson** + **Ruby metrics plugin** this is a beginning.
+
+## Install
+
+ $ [sudo] gem install simplecov_rcov
+
+## Usage
+
+ require 'simplecov_csv'
+ SimpleCov.formatter # SimpleCov::Formatter::RcovFormatter
+
+## TODO
+
+The actual version generates only one simple **/rcov/index.html** file.
+
+## Credits
+
+Author:: Fernando Guillen: http://fernandoguillen.info
+Copyright:: Copyright (c) 2010 Fernando Guillen
+License:: Released under the MIT license.
View
2 Rakefile
@@ -2,7 +2,7 @@ require 'rubygems'
require 'rake'
require 'echoe'
-Echoe.new('simplecov-rcov', '0.1.0') do |p|
+Echoe.new('simplecov-rcov', '0.1.1') do |p|
p.description = "Rcov style formatter for SimpleCov"
p.url = "http://github.com/fguillen/simplecov-rcov"
p.author = "Fernando Guillen http://fernandoguillen.info"
View
2 views/index.erb.html
@@ -30,7 +30,7 @@
<tbody>
<% @files.each do |file| %>
<tr class="all_files">
- <td class="left_align"><%= file.filename.gsub(SimpleCov.root, '.') %></td>
+ <td class="left_align"><a href="#<%= file.filename.gsub(SimpleCov.root, '.') %>"><%= file.filename.gsub(SimpleCov.root, '.') %></a></td>
<td class='right_align'><tt><%= file.lines.count %></tt></td>
<td class='right_align'><tt><%= file.covered_lines.count + file.missed_lines.count %></tt></td>
<td class="left_align"><tt class=''><%= '%.2f' % file.covered_percent %>%</tt></td>

0 comments on commit 091bb2d

Please sign in to comment.