Install any skill in seconds. Free to start, no credit card required.
Get Started Free →loulanyue/perl-testing
Perl testing patterns using Test2::V0, Test::More, prove runner, mocking, coverage with Devel::Cover, and TDD methodology.
Passed 22 of 23 test cases with the skill, and 18 of 23 without it.
and 1 more in the full report
4 fixed18 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
When running `prove t/unit/user.t` from my project root directory, the test runner fails with `Can't locate MyApp/User.pm in @INC`. How should I invoke `prove` so that the local `lib/` directory is automatically added to `@INC`?
| Checked | Without skill | With skill |
|---|---|---|
| Specifies using the -l flag with prove. | Missed | Passed |
The instructions your model reads when the skill loads.
Comprehensive testing strategies for Perl applications using Test2::V0, Test::More, prove, and TDD methodology.
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;
test cases passed, vs 18 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.