@floppy If you want a book on TDD, this is good: http://www.growing-object-oriented-software.com/.
If you just want to learn it by doing:
1. Write a failing test.
2. Make the test pass
3. Refactor to make the code clean
4. Repeat
(A failing test might not even compile if it's calling something which hasn't been written yet. That's ok.)
I have also used coverage tools when not doing strict TDD to make most code is tested.
Hope that helps!
Chirp! is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All Chirp! content and data are available under the Creative Commons Attribution 3.0 license.