Test-Driven Development in Python (8 tags)
The goal of test-driven development is not to produce tests; they're merely a helpful by-product. The real goal is to produce elegant, working code. Jason Diamond demonstrates how test-driven development works using Python and PyUnit to create a sample event-tracking utility.
More Test-Driven Development in Python (6 tags)
The goal of test-driven development is not to produce tests; they're merely a helpful by-product. The real goal is to produce elegant, working code. Jason Diamond demonstrates how test-driven development can improve the design of code.
Automated GUI Testing (6 tags)
Automation is the friend of testing. If you can drive your program with a script, you can test it. How does that work with GUIs, though? In the Windows world, one solution is the Win32::GuiTest module. George Nistorica demonstrates how to use it.
Perl Code Kata: Testing Databases (5 tags)
Testing simple code is all well and good, but what happens when your real code has to work with external programs, such as databases? How do you test your code adequately without going crazy writing scaffolding that has no chance of working anywhere but your test box? Stevan Little suggests that DBD::Mock can round out your test toolbox nicely in this Perl Test Kata.
Perl Code Kata: Mocking Objects (5 tags)
One problem with many examples of writing test code is that they fake up a nice, perfect, self-contained world and proceed to test it as if real programs weren't occasionally messy. Real programs have to deal with external dependencies and work around odd failures, for example. How do you test that? In this Perl Code Kata, Stevan Little presents exercises in using Test::MockObject to make the messy real world more testable.