Ruby test coverage tool Ruby test coverage tool ruby ruby

Ruby test coverage tool


Simplecov. Rcov doesn't work so well under Ruby 1.9.*, but simplecov does.


You also have deep-cover which aims to be more complete than the mentioned examples.

From the Readme:

Deep Cover aims to be the best coverage tool for Ruby code:

more accurate line coverage

branch coverage

can be used as a drop-in replacement for the built-in Coverage library.


Use Ruby's built in Coverage feature if you are wanting something very simple. It is what Simplecov uses under the hood.