ruby 1.9 和 RSpec2 有什么好的突变测试工具吗?

发布于 2024-12-17 16:06:00 字数 271 浏览 6 评论 0原文

我曾经使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

月下凄凉 2024-12-24 16:06:00

您研究过 Mutant gem 吗?

它与 Rspec 一起使用。

这里有一个很好的教程

$ gem install mutant-rspec

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

Have you looked into the Mutant gem?

It works with Rspec.

There is a nice tutorial here

$ gem install mutant-rspec

$ mutant -I lib -r your_library --use rspec "YourClass#method_to_mess_with"
倒带 2024-12-24 16:06:00

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文