软件工程

本类阅读TOP10

·PHP4 + MYSQL + APACHE 在 WIN 系统下的安装、配置
·Linux 入门常用命令(1)
·Linux 入门常用命令(2)
·使用 DCPROMO/FORCEREMOVAL 命令强制将 Active Directory 域控制器降级
·DirectShow学习(八): CBaseRender类及相应Pin类的源代码分析
·基于ICE方式SIP信令穿透Symmetric NAT技术研究
·Windows 2003网络负载均衡的实现
·一网打尽Win十四种系统故障解决方法
·数百种 Windows 软件的免费替代品列表
·收藏---行百里半九十

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
Building Test---Chapter 4

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

Point1:
    Make sure all tests are fully automatic and that they check their own result!
Point2:
    A suite of tests is a powerful bug detector that decapites the time it takes to find bugs.
Point3:
  Run your tests frequently. Localize tests whenever you compile---every test at least every day.
Point4:
   When you get a bug report ,start by writing a unit test that exposes the bug.
Point5:
   The key to testing is to test the areas that you are most worried about going wrong.,a key tricki with tests is to look for boundary conditions.
Point6:
   It is better to write and run incomplete tests than not to run complete tests.
Point7:
  Don't forget to test that exceptions are raised when things are expected to go wrong.
                       

作者在这里提到了两种测试的不同unit tests and functional tests
unit test is a kind of test that is used to improve the productivity of programmers,it is highly localized,each works within a single package.
while functional tests are used to ensure the software as a whole works,they are often done by another group of people.

从昨天开始我接触到了JUnit,以前这个东西对我来说是完全未知的,但是由于种种原因没有去仔细研究,昨天忽然发现JUnit是由Kent Beck和Erich Gamma(<<设计模式>>作者)开发的(现在是开源项目),我不得不说:物以类聚了!JUnit


相关文章

相关软件