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;