是否有针对Ruby 1.9和RSpec2的好的变异测试工具? [英] Are there any good mutation testing tools for ruby 1.9 and RSpec2?

查看:77
本文介绍了是否有针对Ruby 1.9和RSpec2的好的变异测试工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经使用Heckle,但是由于ParseTree的问题,它与ruby 1.9不兼容。我一直在寻找替代方案,但看起来唯一有希望的是Chaser,并且没有任何明确的文档可供我查看是否可以使其与RSpec一起使用。似乎有Test :: Unit依赖项。

I used to use Heckle, but it is incompatible with ruby 1.9 because of issues with ParseTree. I've looked for alternatives, but the only thing that looked promising was Chaser, and that did not have any clear documentation that I could use to see if I could make it work with RSpec. It seems to have Test::Unit dependencies.

那么-有人在使用任何很酷的工具来真正检查测试的质量吗?

So - is anyone out there using any cool tools to really check the quality of your tests?

或者-是否有任何覆盖率工具比c0覆盖率更好?这将有助于解决相同的问题。我现在正在使用cover_me,但是它是c0,就像rcov。

Alternatively - are there any coverage tools that provide better than c0 coverage? This would kind of help solve the same problem. I'm using cover_me at the moment, but it is c0, like rcov.

推荐答案

您是否调查过诱人的宝石

它与Rspec兼容。

此处有一个不错的教程


$ gem install mutant-rspec

$ mutant -I lib -r your_library --use rspec "YourClass#method_to_mess_with"

这篇关于是否有针对Ruby 1.9和RSpec2的好的变异测试工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆