Ruby test coverage tool

Viewed 11543

I need a tool which measures test coverage under Ruby.

I tried rcov, but couldn't install it under Windows, Cygwin, or Ubuntu.

Which programs (not necessarily free) calculate the branch and/or line coverage of tests in Ruby and work with Ruby on Rails?

3 Answers

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.

Related