Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Code coverage for ruby 2.0, 2.1 and 2.2
Ruby HTML CSS

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
template
.gitignore
COPYING
NEWS
README.rdoc
Rakefile
TODO
VERSION
coco.gemspec
reek.sed

README.rdoc

coco

Another COde COverage for ruby 1.9 (from the famous post of Aaron Patterson). This one suits my needs.

Features

  • Use it from rspec with a simple require 'coco'

  • Display filenames covered less than 90% on console

  • Simple html report only for files covered less than 90%

  • Report sources that have no tests

  • UTF-8 compliant

  • Configurable via a simple yaml file

  • Colorized console output (*nix only)

Note: I have tested coco only on debian linux. I have not tested it with the test/unit framework.

Documentation

require 'coco'

at the beginning of your tests, usually in a *helper*.rb file.

See the wiki for more information on using coco.

To generate the developper's documentation in YARD format:

rake doc

Dependencies

ruby >= 1.9.2

To contribute:

  • reek

  • rspec

Installing coco

From the sources:

rake install

From rubygems:

gem install coco

License

GPLv3, see COPYING.

Questions and/or Comments

Feel free to email Xavier Nayrac with any questions.

Something went wrong with that request. Please try again.