
Perl Testing
This covers the full spectrum of Perl testing from Test::More basics through modern Test2::V0 patterns, plus prove runner configuration and Devel::Cover integration. The TDD workflow section is genuinely useful, walking through red-green-refactor with actual code. I appreciate the practical distinction between Test::More (standard, works everywhere) and Test2::V0 (better diagnostics, hash/array builders). The mocking examples using Test::MockModule are solid, and there's a good warning against monkey-patching that leaks across tests. Coverage setup with Devel::Cover includes CI-ready threshold checking. The fixture organization and .proverc configuration are the kind of details you'd otherwise have to cobble together from multiple sources. Activate this when writing Perl tests or setting up test infrastructure.
- skills.sh installs
- 4.5K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill perl-testing --agent claude-codeInstalls into .claude/skills of the current project.
Files
Perl Testing Patterns
Comprehensive testing strategies for Perl applications using Test2::V0, Test::More, prove, and TDD methodology.
When to Activate
- Writing new Perl code (follow TDD: red, green, refactor)
- Designing test suites for Perl modules or applications
- Reviewing Perl test coverage
- Setting up Perl testing infrastructure
- Migrating tests from Test::More to Test2::V0
- Debugging failing Perl tests
TDD Workflow
Always follow the RED-GREEN-REFACTOR cycle.
# Step 1: RED — Write a failing test
# t/unit/calculator.t
use v5.36;
use Test2::V0;
use lib 'lib';
use Calculator;
subtest 'addition' => sub {
my $calc = Calculator->new;
is($calc->add(2, 3), 5, 'adds two numbers');
is($calc->add(-1, 1), 0, 'handles negatives');
};
done_testing;
# Step 2: GREEN — Write minimal implementation
# lib/Calculator.pm
package Calculator;
use v5.36;
use Moo;
sub add($self, $a, $b) {
return $a + $b;
}
1;
# Step 3: REFACTOR — Improve while tests stay green
# Run: prove -lv t/unit/calculator.t
Test::More Fundamentals
The standard Perl testing module — widely used, ships with core.
Basic Assertions
use v5.36;
use Test::More;
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- Category
- Testing & QA
- First seen
- Apr 16, 2026
More from affaan-m/everything-claude-code
All 256- Returns Reverse Logistics4.5K
- Team Builder4.5K
- X Api4.5K
- Design System4.4K
- Nuxt4 Patterns4.4K
- Browser Qa4.3K
- Jira Integration4.3K
- Rules Distill4.3K
- Click Path Audit4.2K
- Git Workflow4.2K
- Hexagonal Architecture4.2K
- Remotion Video Creation4.2K
- Santa Method4.2K
- Skill Comply4.2K
- Laravel Verification4.1K
- Nestjs Patterns4.1K
- Autonomous Agent Harness4K
- Benchmark4K
- Brand Voice4K
- Healthcare Phi Compliance4K
- Laravel Plugin Discovery4K
- Repo Scan4K
- Safety Guard4K
- Seo4K