schwern/test-more — Issue #254: Test::Builder::Tester needs updating to deal with new TAP format
Author: doy
Created: 2012-02-12 10:25:39+00:00
State: open

Moose's test suite fails with Test::More 1.005000_002, because Test::Builder::Tester doesn't appear to take the new TAP version declaration into account. Sample failure:

```
# Failed test 'with_immutable failure'
# at t/test_moose/with_immutable.t line 28.
# STDOUT is:
# TAP version 13
# ok 1
# not ok 2
#
# not:
# ok 1
#
# not ok 2
#
# as expected
```

The test script looks like this:

```perl
#!/usr/bin/perl

use strict;
use warnings;

use Test::Builder::Tester;
use Test::More;

use Test::Moose;

{
package Foo;
use Moose;
}

{
package Bar;
use Moose;
}

package main;

test_out("ok 1", "not ok 2");
test_fail(+2);
my $ret = with_immutable {
ok(Foo->meta->is_mutable);
} qw(Foo);
test_test('with_immutable failure');
ok(!$ret, "one of our tests failed");

test_out("ok 1", "ok 2");
$ret = with_immutable {
ok(Bar->meta->find_method_by_name('new'));
} qw(Bar);
test_test('with_immutable success');
ok($ret, "all tests succeeded");

done_testing;
```