Wednesday, October 03, 2007

Code for Testability

These days I'm finding it very difficult to get people write the unit tests. The difficulty is even more with the experienced developers, atleast the junior developers are clear when they start writing code and ask questions if they are not clear about something. One funny incident - one of the senior developers completed the coding and asked a junior developer to write the test cases for it. God! The test cases are not just for the sake of it.

Ironically, a few senior developers look at unit tests as some kind of validations!! perhaps due to the use of assert* methods...

Wake up folks!

1 comment:

Kaushik said...

Common issue all around buddy. I have posted my thought on what a good unit test means at my blog