Another code coverage for ruby 1.9 (from the famous post of Aaron Patterson).
Use it from rspec or test/unit with a simple require 'coco'
Works with Rails
Display filenames covered less than 90% on console
Simple html report only for files covered less than 90%
Report sources that have no tests
Configurable via a simple yaml file
Colorized console output (*nix only)
Note: I have tested coco only on debian linux.
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:
ruby >= 1.9.2
From the sources:
gem install coco
GPLv3, see COPYING.
Feel free to email Xavier Nayrac with any questions.