houseabsolute / test-class-moose

Serious testing for serious Perl
http://metacpan.org/release/Test-Class-Moose/
Other
18 stars 32 forks source link

Make tests pass with plain prove #92

Closed HaraldJoerg closed 6 years ago

HaraldJoerg commented 6 years ago

When I run the tests from the repository with prove -vlbr, then two tests (basic.tand test_control_methods) have one failure each. The failure disappears when I directly call prove -vlbr t/basic.t. Apparently prove without a path prepends ./t/ before the test files: the failure reappears when I call prove -vlbr ./t/basic.t. The patch allows for an optional ./ before the path names in the die messages. make test passes with and without the patch.

This PR is a "side effect" of my work with test-class-moose as my July assignment in the CPAN Pull Request Challenge.

HaraldJoerg commented 6 years ago

Agreed, and adjusted accordingly.

autarch commented 6 years ago

Merged from the CLI. Thanks!