Skip to content

Commit

Permalink
0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillen committed Oct 28, 2010
1 parent a0c30a8 commit 091bb2d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions 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.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion views/index.erb.html
Expand Up @@ -30,7 +30,7 @@ <h1>SimpleCov - RCov style</h1>
<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>
Expand Down

0 comments on commit 091bb2d

Please sign in to comment.