Re:Unit Testing: Is There Really Any Debate Any Longer?
by psylence519 on Wednesday September 12, 2012 @11:09AM
(#4511000)
All code written has a chance to live forever, you owe some tests to the next guy forced to fix your shit.
Re:Unit Testing: Is There Really Any Debate Any Longer?
by roel_v on Wednesday September 12, 2012 @11:16AM
(#4511039)
OK then, but in an iteration, you don't throw away everything you have and start from scratch. You use unit tests to check that those parts that weren't changed, weren't affected by the parts that were. Unit testing pays off especially in those scenarios.
Re:Unit Testing: Is There Really Any Debate Any Longer?
by arctangent on Wednesday September 12, 2012 @11:41AM
(#4511153)
I understand this. But writing tests as you go means you can't introduce new functional code at the same pace. Although I think it's an unsolved problem, I lean heavily towards writing tests (and documentation) towards the end of a project.
The central point I am trying to make is that it seems wasteful to spend time writing tests for code that may soon be deleted.