ruby 1.9 和 RSpec2 有什么好的突变测试工具吗?
我曾经使用 Heckle,但由于 ParseTree 的问题,它与 ruby 1.9 不兼容。我一直在寻找替代方案,但唯一看起来有希望的是 Chaser,而且它没有任何明确的文档可供我用来查看是否可以使其与 RSpec 一起使用。它似乎具有 Test::Unit 依赖性。
那么,有人使用任何很酷的工具来真正检查测试的质量吗?
或者 - 是否有任何覆盖率工具可以提供比 c0 覆盖率更好的覆盖率?这将有助于解决同样的问题。我现在使用的是 cover_me,但它是 c0,就像 rcov 一样。
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?
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您研究过 Mutant gem 吗?
它与 Rspec 一起使用。
这里有一个很好的教程
Have you looked into the Mutant gem?
It works with Rspec.
There is a nice tutorial here
Chaser 还可以与突变测试框架示例一起使用:exemplor-chaser。
不幸的是,追逐者的创造者的注意力集中度就像金鱼一样,并且不再维持它。他对突变体很感兴趣,也想看看是否可以修改 heckle 以使用 ruby_parser 而不是 ParseTree。
Chaser also works with a mutation testing framework exemplor: exemplor-chaser.
Unfortunately, the creator of chaser has the attention span of a goldfish and isn't maintaining it any more. He's kind of interested in mutant, and also in seeing if heckle can be modified to use ruby_parser rather than ParseTree.