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
Download (untitled) / with headers
text/plain 267b
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
Download Foo.pm
text/x-perl 134b
package t::Foo; use MooseX::Declare; class t::Foo { use Test::Sweet; test quux { ok(1, 'Parent test'); } } 1;
Subject: Bar.pm
Download Bar.pm
text/x-perl 170b
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;


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.