The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TAP::Stream - Experimental TAP stream builder for parallel tests

VERSION

version 0.42

SYNOPSIS

    my $stream = TAP::Stream->new;
    $stream->add_to_stream(
        TAP::Stream::Text->new(
            name => 'foo tests',
            text => <<'END' )
    ok 1 - foo 1
    ok 2 - foo 2
    1..2
    END
    );
    $stream->add_to_stream(
        TAP::Stream::Text->new(
            name => 'bar tests',
            text => <<'END' )
    ok 1 - bar 1
    ok 2 - bar 2
        ok 1 - bar subtest 1
        ok 2 - bar subtest 2
        not ok 2 - bar subtest 3 #TODO ignore
    not ok 3 - bar subtest
    ok 4 - bar 4
    1..4
    END
    );

    my $parent_stream = TAP::Stream->new( name => 'parent stream' );
    $parent_stream->add_to_stream($stream);
    $parent_stream->add_to_stream($stream); # yes, you can add it twice
    my $master_stream = TAP::Stream->new( name => 'master stream' );
    $master_stream->add_to_stream($parent_stream);
    say $master_stream->tap_to_string;

DESCRIPTION

Highly experimental module to combine multiple TAP streams. If it works, maybe it will be released as a separate module one day.

FOR INTERNAL USE ONLY WITH Test::Class::Moose.

AUTHOR

Curtis "Ovid" Poe <ovid@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Curtis "Ovid" Poe.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.