Ruby test coverage tool

前端 未结 3 1882
小鲜肉
小鲜肉 2021-02-18 21:21

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 f

相关标签:
3条回答
  • 2021-02-18 21:59

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

    0 讨论(0)
  • 2021-02-18 22:00

    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.

    0 讨论(0)
  • 2021-02-18 22:11

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

    0 讨论(0)
提交回复
热议问题