单元测试 – 编辑触发测试是下一步吗?

前端之家收集整理的这篇文章主要介绍了单元测试 – 编辑触发测试是下一步吗?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我刚刚阅读了Michael C. Feathers的精彩书籍 Working Effectively with Legacy Code,这是对遗留代码进行测试的圣经.在本书中,他描述了一种称为编辑触发测试的东西:

If 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 Feedback 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.

ruby有 Autotest.它在编辑文件时不断运行单元测试,使用一些简单的约定将源文件映射到测试文件.还有一个插件,我已经看到,在emacs中以交互方式为测试代码添加红色或绿色.我认为在代码编辑器本身中立即视觉反馈传递/失败的想法非常棒.
原文链接:https://www.f2er.com/javaschema/281608.html

猜你在找的设计模式相关文章