What problem does it solve?
Writing reliable, maintainable test suites for Perl applications is often inconsistent, with low coverage and ad-hoc workflows that fail to catch regressions early.
Core Features & Use Cases
- TDD Workflow Guidance: Step-by-step red-green-refactor cycle for Perl development, with concrete code examples for writing failing tests first.
- Modern & Legacy Testing Patterns: Support for both the modern Test2::V0 framework and the core Test::More module, including deep comparison, subtests, and skip/TODO logic.
- Tooling Integration: Best practices for the prove test runner, Test::MockModule for mocking external dependencies, and Devel::Cover for tracking code coverage.
- Use Case: For example, when developing a Perl API, use this skill to set up a test suite that mocks external database calls, validates error handling, and ensures 80%+ coverage before merging code.
Quick Start
Use the perl-testing skill to write a failing test for your new Perl module's add function, implement the minimal code to pass it, and run the test suite with prove to verify it works.