Todo
Learning when not to test.
when asked what I need to test, my usual answer is: "my logic"
stressing both words
"my" means
- not to test third party packages
- not to test my db's sql engine by sending statements
- not to test the db population
- not to test whether my browser displays valid html correctly
"logic" means
- any code that has a conditional like if(), for(), etc.
- any control flow like through exceptions and polymorphism
- sequence of statements usually has no logic, but can have
in case of template method (polymorphism) and where I
must ensure the correct order of execution
I found the two words definition to be a nice analagon to
the two sentence definition of TDD.
cheers
Dierk