I've started to develop a real bias for self-documenting tests. Here's the regression test I just got working:
( The test )You can kind of figure out what that's doing even if you don't know the system, and it's wholly obvious if you do. The comments are almost redundant. *That* is what a really good test should look like in my book: clear, concise, and trivially easy to write new one...
Apr. 29th, 2008
I've started to develop a real bias for self-documenting tests. Here's the regression test I just got working:
( The test )You can kind of figure out what that's doing even if you don't know the system, and it's wholly obvious if you do. The comments are almost redundant. *That* is what a really good test should look like in my book: clear, concise, and trivially easy to write new one...