Get to grips with Prove, Perl's test workhorse
The ubiquitous test runner is a powerful tool for your arsenal
Read it
Unit test your code on an in-memory database
Unit tests should be self-contained, even database ones
Read it
Quickly Debug your Perl code at the command line
Something not working? Whip up a one liner and find out why
Read it
Check your module POD using perldoc
Perl ships with a command-line program called perldoc that makes it easier to search and read Perl’s vast documentation in the POD markup language. If perldoc is called with the -F flag, it will display the POD markup of an input file - this can be useful when your are developing a new Perl distribution and want to check the appearance of the POD in your module before it appears on CPAN for all to see.
Read it
Perl Code Kata: Mocking Objects
The last Perl Code Kata was on DBD::Mock, a mock DBI driver which is useful for testing Perl DBI applications. This Kata delves once again into the world of mock objects, this time using the more general Test::MockObject module….
Read it
Perl Code Kata: Testing Imports
Want to get better at Perl? This short exercise helps you understand how modules import symbols into namespaces.
Read it
Perl Code Kata: Testing Taint
Perl’s taint mode can help you avoid using untrusted input insecurely. Here’s how to practice using it.
Read it
Building Testing Libraries
Testing is an important step in developing any important body of work. In today’s pragmatic culture, we’re taught to test first, test often, and design with tests. The expectation is that chanting “test test test” forgives all sins. To…
Read it
An Introduction to Testing
Does your code work? How do you know that? Testing software with Perl is easier than you think, and it’ll give you confidence that you’ve done the right thing.