Please sign in to comment.
Emulate an accidental behavior of Test::Builder::Tester.
Previously, TBT would not completely reset the test state so the plan would still be set. Some tests accidentally relied on this, anything that would set the plan if it hasn't already been set like Test::HasVersion or Test::DistManifest. This change sets a plan in the test test if there was one before to emulate the behavior. For #327 and #328
- Loading branch information...
Showing with 25 additions and 2 deletions.
|@@ -0,0 +1,17 @@|
|+# This tests that TBT emulates a previous accidental behavior that some|
|+# tests accidentally rely on. The larger TBT plan would leak into the|
|+# test tests.|
|+use Test::Builder::Tester tests => 1;|
|+test_out("ok 1 - TBT sets a plan in test tests");|
|+ok( Test::Builder->new->has_plan, "TBT sets a plan in test tests" );|