Skip to content


忙碌的新年第一周!

自从元旦去武义泡温泉回来后,一直处于十分忙碌的状态。

两个升级包需要周三交付,此外还有淘宝b2c商户统计数据问题需要我跟进,以及网站集成组业务风险点优先级排列的任务,再加上周会上要介绍EclEmma和单元测试,真是忙碌的一周!

这里粘贴一下EclEmma介绍时ppt中关于单元测试的一些内容。

A test is not a unit test if:

  • It talks to the database
  • It communicates across the network
  • It touches the file system
  • It can’t run at the same time as any of your other unit tests
  • You have to do special things to your environment (such as editing config files) to run it.

Unit test tips:

  • If you write code, write tests.
  • Dont get stuck on unit testing dogma(信条).
  • Think of code and test as one.
  • The test is more important than the unit.
  • The best time to test is when the code is fresh.
  • Tests not run waste away.
  • An imperfect test today is better than a perfect test someday.
  • An ugly test is better than no test.
  • Sometimes, the test justifies the means.
  • Only fools use no tools.
  • Good tests fail.
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • LinkedIn
  • description
  • TwitThis
  • MySpace
  • StumbleUpon
  • Google
  • FriendFeed
  • Mixx
  • Reddit

Posted in 全部.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.

使用新浪微博登陆