2008-03-20

Automated unit Bestpractise

关键字: unit test
Automated unit testing
Continuous integration software--CruiseControl
Yes...
More code needs to be written
Estimates will increase
It's a new way of working
It feels weired,perhaps pointless initially
But...
Automated unit testing is very powerfull
Lets you regression test code for free!
Helps you write cheaner code
Provides a good milestone for completion
Provides confidence when changing, fixing or refactoring code
If you can write code, you can write a unit test!
A defect is raised...
Look at the unit tests
Write a unit test to prove the bug -- make sure its reproducible
Fix the bug
The new test will pass
Check-in the fix and new test
Chances of reoccurrence are greatly reduced

Continuous integration
Project blogs -- Pebble

Tracking metrics over time -- QALab

http://www.scribd.com/doc/387095/Java-Development-Best-Practices
评论
alanwu 2008-03-20   回复
Rational Edge: 书评:IBM Rational ClearCase、Ant 和 CruiseControl——加速和自动化构建过程的 Java 开发者指南

http://www.ibm.com/developerworks/cn/rational/rationaledge/content/aug06/reader/pollice.html
alanwu 2008-03-20   回复
IBM Rational Clearcase, Ant, And Cruisecontrol: The Java Developer's Guide

http://books.google.com.sg/books?hl=en&id=SRVdPTxjiRwC&dq=cruisecontrol+clearcase&printsec=frontcover&source=web&ots=M_dNKt2RD9&sig=enRSDgrEcJcJ4vl3Vho60uVGDuA#PPA260,M1
发表评论

您还没有登录,请登录后发表评论

alanwu
搜索本博客
最近加入圈子
存档
最新评论