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-code

Installs 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
1affaan-m avatarbrowser-qaaffaan-m/everything-claude-codebrowser qa4.3Kskills.sh installs
2affaan-m avatarcsharp-testingaffaan-m/everything-claude-codecsharp testing3.6Kskills.sh installs
3sickn33 avatarplaywright-skillsickn33/antigravity-awesome-skillsplaywright skill3.5Kskills.sh installs
4everyinc avatarce-test-xcodeeveryinc/compound-engineering-pluginBuild and test iOS apps on simulator with XcodeBuildMCP.3Kskills.sh installs
5remotion-dev avatarweb-renderer-testremotion-dev/remotionAdd a test case to the web renderer2.9Kskills.sh installs
6chrisbanes avatarcompose-ui-testing-patternschrisbanes/skillsUse when writing or reviewing Jetpack Compose UI tests, screenshot tests, previews, semantics assertions, fake image loading, keyboard input, focus assertions, 2.5Kskills.sh installs