简体   繁体   English

什么是ruby测试工具,它“破坏”了代码以查看测试的紧密程度?

[英]What is the ruby test tool called that 'breaks' your code to see how tight your tests are?

A wee while ago I ended up on a page which hosted several ruby tools, which had 'crazy' names like 'mangler' or 'executor' or something. 不久前,我结束了一个页面,该页面上托管了多个红宝石工具,这些工具具有“疯狂”的名称,例如“ mangler”或“ executor”之类。 The tool's job was to modify you production code (at runtime) in order to prove that your tests were precise. 该工具的工作是在运行时修改您的生产代码,以证明您的测试是准确的。

Unfortunately I would now like to find that tool again, but can't remember what it was called. 不幸的是,我现在想再次找到该工具,但不记得它叫什么了。 Any ideas? 有任何想法吗?

I think you're thinking about Heckle, which flips your code to make sure your tests are accurate. 我认为您正在考虑使用Heckle,它可以翻转代码以确保测试准确无误。 Here: 这里:

http://seattlerb.rubyforge.org/heckle/ http://seattlerb.rubyforge.org/heckle/

Maybe you're thinking of the Flay project and related modules: 也许您正在考虑Flay项目和相关模块:

http://ruby.sadi.st/Ruby_Sadist.html http://ruby.sadi.st/Ruby_Sadist.html

Also you can try my mutant . 您也可以尝试我的突变体 Its AST based and currently runs under MRI and RBX in > 2.0 mode. 它基于AST的当前运行在MRI和RBX下,且> 2.0模式。 It only has a killer for rspec3, but others are possible also. 它仅是rspec3的杀手er,但也有可能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使您的Ruby代码模糊不清? - Obscure your Ruby code? 如何解决'你的Ruby版本是2.6.3,但是你的Gemfile指定的是2.7.4'怎么办? - How to resolve 'Your Ruby version is 2.6.3, but your Gemfile specified 2.7.4" What should I do? Ruby-在代码中使用删除文件和目录命令时如何防止擦拭硬盘 - Ruby - How to prevent wiping your hard drive when using delete file and directory commands in your code 作为开发人员,不同的Ruby线程模型(Ruby与JRuby)将对您的代码产生什么实际影响? - What practical effect will different Ruby threading models (Ruby vs JRuby) have on your code as a developer? 如何修复“您的 Ruby 版本为 2.3.3,但您的 Gemfile 指定为 2.5.2” - How to fix 'Your Ruby version is 2.3.3, but your Gemfile specified 2.5.2' 如何将CSV文件作为红宝石黄瓜数据存储库 - How to make your CSV file as your ruby cucumber data repository 如何查看谁在访问您的网站? - How to see who is visiting your site? 如何修复“您的 Ruby 版本是 1.9.3,但您的 Gemfile 指定了 2.0.0” - How to fix "Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0" parallel_tests gem是否按顺序运行您的测试套件? - Does the parallel_tests gem run your test suites in sequence? 发布带有测试的gem时,如何保护测试中的API密钥? - How do you protect your API key in your tests when you publish a gem with tests?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM