Ruby测试覆盖率工具 [英] Ruby test coverage tool
本文介绍了Ruby测试覆盖率工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要一个可以在Ruby下测量测试覆盖率的工具。
I need a tool which measures test coverage under Ruby.
我尝试了rcov,但无法在Windows,Cygwin或Ubuntu下安装它。
I tried rcov, but couldn't install it under Windows, Cygwin, or Ubuntu.
哪个程序(不一定是免费的)可以计算Ruby中测试的分支和/或行覆盖率并与Ruby on Rails一起使用?
Which programs (not necessarily free) calculate the branch and/or line coverage of tests in Ruby and work with Ruby on Rails?
推荐答案
Simplecov 。 Rcov在Ruby 1.9。*下不能很好地工作,但是simplecov可以。
Simplecov. Rcov doesn't work so well under Ruby 1.9.*, but simplecov does.
这篇关于Ruby测试覆盖率工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文