Some good articles from Jack Crenshaw on how he creates and tests software:
Embedded.com: How I write software
Embedded.com: How I write software – reader feedback
Embedded.com: How I test software
Embedded.com: How I test software again and again
Bonus: How Jack worked on Apollo guidance problems