Skip Menu |

This queue is for tickets about the Test-Sweet CPAN distribution.

Report information
The Basics
Id: 54873
Status: new
Priority: 0/
Queue: Test-Sweet

People
Owner: Nobody in particular
Requestors: KILINRAX [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.01
Fixed in: (no value)



Subject: No mechanism for including tests within before/after blocks in plan counts
e.g. using the attached module heirarchy: [-@-]$ mx-run t::Foo ^[[A^[[A1..1 ok 1 - Parent test 1..1 ok 1 - quux [-@-]$ mx-run t::Foo::Bar 1..1 ok 1 - Child's sanity check ok 1 - Parent test 1..1 ok 2 - quux # Looks like you planned 1 test but ran 2.
Subject: Foo.pm
package t::Foo; use MooseX::Declare; class t::Foo { use Test::Sweet; test quux { ok(1, 'Parent test'); } } 1;
Subject: Bar.pm
package t::Foo::Bar; use MooseX::Declare; class t::Foo::Bar extends t::Foo { use Test::Sweet; before quux { ok(1, "Child's sanity check"); } } 1;