NAME

Test::More::Prefix - Prefix some test output

DESCRIPTION

Inject a prefix in to Test::Builder's note and diag output. Useful for providing context in noisy and repetitive tests

SYNOPSIS

use Test::More;
use Test::More::Prefix qw/test_prefix/;

note "Bar"; # Print '# Bar'

test_prefix("Foo");
note "Baz"; # Print '# Foo: Baz'

test_prefix('');
note "Bat"; # Print '# Bat'

IMPLEMENTATION

Intercepts calls to Test::Builder's internal _print_comment command and adds your prefix to all defined lines.

FUNCTIONS

test_prefix

Set the prefix. Accepts a string.

AUTHOR

Peter Sergeant - pete@clueball.com on behalf of http://www.net-a-porter.com/|Net-A-Porter.