github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

relevance / rcov forked from spicycode/rcov

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 205
    • 7
  • Source
  • Commits
  • Network (7)
  • Issues (11)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (5)
    • gh-pages
    • jruby
    • master ✓
    • separation_anxiety
    • ui_improvements
  • Tags (2)
    • release_0_9_7_1
    • release_0_9_7
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

The new home of RCov on GitHub — Read more

  cancel

http://relevance.github.com/rcov

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

bumping version 
abedra (author)
Tue Dec 29 07:46:09 -0800 2009
commit  72fc77c920418f38c4b4fe25cc93b127aca31ff1
tree    518018732bc6eec30a030e86173a91da07f4986e
parent  83ba01eab0c9e230e0ecf74bb08217f54d718774
rcov /
name age
history
message
file .gitignore Wed Jul 29 20:24:24 -0700 2009 add linux binary to gitignore [abedra]
file BLURB Fri May 29 07:38:09 -0700 2009 Updating license bits [abedra]
file LICENSE Fri May 29 07:38:09 -0700 2009 Updating license bits [abedra]
file README.markdown Mon Aug 24 21:10:31 -0700 2009 Restored README; restored authors in gemspec; w... [Bantik]
file Rakefile Fri Oct 09 10:31:07 -0700 2009 Adding sdoc [spicycode]
file THANKS Thu Sep 10 10:53:23 -0700 2009 updating todo. [hooligan495]
file TODO Thu Sep 10 11:03:03 -0700 2009 looking at creating the gem also [hooligan495]
directory bin/ Sun Aug 23 20:59:18 -0700 2009 Support for new command-line option --css which... [Bantik]
directory doc/ Fri Jul 31 07:56:57 -0700 2009 updating docs [abedra]
directory editor-extensions/ Tue Mar 17 17:19:24 -0700 2009 cleanup, gemspec modification for new 1.9 hotne... [abedra]
directory ext/ Sat Sep 12 07:33:29 -0700 2009 cleanup [relevance]
directory lib/ Tue Dec 29 07:46:09 -0800 2009 bumping version [abedra]
file rcov-java.gemspec Tue Dec 29 07:46:09 -0800 2009 bumping version [abedra]
file rcov.gemspec Tue Dec 29 07:46:09 -0800 2009 bumping version [abedra]
file setup.rb Wed Jul 30 12:52:53 -0700 2008 update to Rake for suporting gems [Jay McGaffigan]
directory test/ Fri Sep 11 11:39:29 -0700 2009 fixing tests for both platforms [abedra]
README.markdown

RCov - Code Coverage for Ruby

Why? What?

This is our fork of Mauricio Fernandez's RCov (maintained by Relevance).

Why does this fork exist?

  • Ruby 1.9.1 Compatibility (in progress)
  • Removal of REXML Dependency (the source of most of the RCov bugs, done)

Install

gem install relevance-rcov --source http://gems.github.com

Bugs and Issues

RCov Issues on GitHub

Continuous Integration Status

RCov at RunCodeRun

More Info

rcov copyright (c) 2004-2006 Mauricio Fernandez mfp@acm.org

rcov README

Rcov is a code coverage tool for Ruby. It is commonly used for viewing overall test coverage of target code. It features:

  • fast execution: 20-300 times faster than previous tools
  • multiple analysis modes: standard, bogo-profile, "intentional testing", dependency analysis...
  • detection of uncovered code introduced since the last run ("differential code coverage")
  • fairly accurate coverage information through code linkage inference using simple heuristics
  • cross-referenced XHTML and several kinds of text reports
  • support for easy automation with Rake
  • colorblind-friendliness

Requirements

  • Ruby 1.8.6
  • (recommended) C compiler: you can also use rcov without the rcovrt extension but rcov will be two orders of magnitude slower. The extension requires Ruby 1.8.6 or later.

Normal install

De-compress the archive and enter its top directory. Then type:

($ su)
 # ruby setup.rb

This simple step installs rcov under the default location for Ruby libraries. You can also customize the installation by supplying some options to setup.rb. Try "ruby setup.rb --help".

A normal (rcovrt-enabled) install requires Ruby >= 1.8.6 and a working C toolchain; if you cannot compile Ruby extensions proceed as described below.

You might have to install a "development package" (often named ruby-dev or ruby1.8-dev), or alternatively build ruby from the sources, if the compiler cannot find the headers (ruby.h and friends).

Install without the rcovrt extension

($su )
# ruby setup.rb all --without-ext

will install rcov without building the rcovrt extension.

Usage

In the common scenario, your tests are under test/ and the target code (whose coverage you want) is in lib/. In that case, all you have to do is use rcov to run the tests (instead of testrb), and a number of XHTML files with the code coverage information will be generated, e.g.

rcov -Ilib test/*.rb

will execute all the .rb files under test/ and generate the code coverage report for the target code (i.e. for the files in lib/) under coverage/. The target code needs not be under lib/; rcov will detect is as long as it is require()d by the tests. rcov is smart enough to ignore "uninteresting" files: the tests themselves, files installed in Ruby's standard locations, etc. See rcov --help for the list of regexps rcov matches filenames against.

rcov can also be used from Rake; see readme_for_rake or the RDoc documentation for more information. The Rakefile included in rcov's sources holds a few tasks that run rcov on itself, producing a number of reports. You can try

rake rcov

preferably after a full install or

ruby setup.rb config
ruby setup.rb setup

so that the rcovrt extension can be used to speed up the process. This will generate a cross-referenced XHTML report under coverage/.

rcov can output information in several formats, and perform different kinds of analyses in addition to plain code coverage. See rcov --help for a description of the available options.

License

rcov is licensed under the same terms as Ruby. See LICENSE.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of ePark Labs nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Relevace OSS swat team opensource@thinkrelevance.com

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server