Testing Strategies for Modern Perl Testing Guide Status (and other updates)

Testing Guide Status (and other updates)

I just wanted to post a quick update on Testing Strategies for Modern Perl I’ve been slowly working my way through it. I’m about 4,200 words through chapter 3, which focuses on reusing test code. So far I’ve covered: factoring common data out of test methods, how to refactor tests safely, creating custom test assertions, …

Read Article Read More

Uncategorized Why Programmers Use the Test Hierarchy Antipattern

Why Programmers Use the Test Hierarchy Antipattern

The first part of this series described Test Hierarchy, a hierarchy of test classes that mirrors the classes under test, and explained why it’s an antipattern. Part two explored what makes a good unit test and why Test Hierarchy does not. This third and final post reflects on why programmers use Test Hierarchy and why …

Read Article Read More

Uncategorized Testing Insights from B::DeparseTree

Testing Insights from B::DeparseTree

Rocky Bernstein’s recent post about B::DeparseTree contained several insights on testability and writing good tests. Here are my takeaways. Tim KingTim King is Lead Developer at The Perl Shop. Tim got his start writing real-time embedded software for high-speed centrifuges the 1980’s and went on to do embedded software for Kurzweil Music Systems and Avid …

Read Article Read More

Uncategorized Test Hierarchy Produces Poor Unit Tests

Test Hierarchy Produces Poor Unit Tests

The first part of this series described Test Hierarchy, a hierarchy of test classes that mirrors the classes under test, and explained why it’s an antipattern. For how common it is, this practice doesn’t even produce good unit tests. This three-part series has also been published as a combined essay, “Test::Class Hierarchy Is an Antipattern.” …

Read Article Read More

Uncategorized Test::Class Hierarchy Is an Antipattern

Test::Class Hierarchy Is an Antipattern

Test::Class is particularly good at testing object-oriented code, or so it is said. You can create a hierarchy of test classes that mirrors the hierarchy of classes under test. But this pattern, common in Perl projects, is conspicuously missing from the rest of the xUnit world, and with good reason.

Testing Strategies for Modern Perl Perl Test-driven Development Ebook

Perl Test-driven Development Ebook

A few months ago, we quietly introduced our free-ebook-in-development, Testing Strategies for Modern Perl. Since then, we’ve been hard at work, and we’ve released the first major chunk. Tim KingTim King is Lead Developer at The Perl Shop. Tim got his start writing real-time embedded software for high-speed centrifuges the 1980’s and went on to …

Read Article Read More