我刚刚阅读了Michael C. Feathers的精彩书籍
Working Effectively with Legacy Code,这是对遗留代码进行测试的圣经.在本书中,他描述了一种称为编辑触发测试的东西:
原文链接:https://www.f2er.com/javaschema/281608.htmlIf it isn’t out by the time this book is released,I suspect that someone will soon develop an IDE that allows you to specify a set of tests that will run at every keystroke. It would be an incredible way of closing the @R_404_349@back loop.
It has to happen. It just seems inevitable. There are already IDEs that check Syntax on each keystroke and change the color of code when there are erros. Edit-triggered testing is the next step.
当我读到这篇文章时,我没有听说过支持这一点的任何IDE或工具.但是,我刚刚发现了一个名为Infinitest的项目,它支持Java.
我的问题是:
>是否有任何其他工具/框架支持此功能(希望也适用于Visual Studio)?
>您对此类测试有何体验(高效,减慢IDE等)?
>这是TDD的下一步吗?
更新:
>看看这个screencast,看看Eclipse中的Infinitest.
>刚刚找到一个博客,Brett Schuchert分享了一些experiences with Infinitest.