Posts Tagged "testing"

Functional specs? Anybody? Bueller?

»Posted by on Aug 14, 2009 in Blog, Coding, Technology thoughts | 0 comments

Functional specs?  Anybody? Bueller?

 OK, so you decide to add tests to your code. That typically isn’t so easy. The odds are that your code wasn’t designed and/or implemented to be easily testable. That means you will have to make changes to it to make it testable without breaking any of it (this is usually called refactoring these days). But how can you quickly and easily tell if you’ve broken anything without that comprehensive set of fine-grained tests? Tricky. It’s even trickier than that. If you take the approach that you’ll write tests for all your code after you write the code, you have to go to extra effort to try and design/write the code to be testable.Maintaining an adequate level of testing when writing tests after the code being tested takes time and planning. And if you have...

read more

Code testing

»Posted by on Aug 11, 2009 in Blog, Coding, Technology thoughts | 0 comments

Code testing

Does your code work?  How do you know?  Can you prove it? If you don’t have tests for your code, it sucks. And I mean comprehensive, fine grained, programmer tests (aka something like unit tests), as well as higher level functional and integration tests. Tests that are automated. Tests that are run routinely. With the programmer tests run after any change to the code. Without adequate tests (in terms of both quantity and quality) you simply can’t have confidence that your codes works as required. And even if you are confident with your work, why should anyone else be? What about people who work on the code later? How do they know it still works after they make their changes? Of all the tools and methods out there, which are your favorite?  What is the least...

read more