package Test::Stream::Manual::ToTest2; use strict; use warnings; 1; __END__ =pod =encoding UTF-8 =head1 NAME Test::Stream::Manual::ToTest2 - How to move code to Test2/Test2-Suite =head1 DESCRIPTION Test::Stream is deprecated in favor of L, L, and L. =head1 MAP This section briefly tells you where to look for replacements. =head2 THE GUTS AND INTERNALS =head3 CONTEXT If you used the C method it can now be found in L, usage is identical. Converting from Test-Stream's C function could be as easy as changing C to C. One major gotcha though is that the C attribute is gone. Instead there is a C attribute, but its usage is not identical. =head3 TODO/SKIP TODO and SKIP are no longer managed inside the Context and DebugInfo objects. Skip is now a full fledged event type C, and C has added a C method. TODO is no longer tracked at all by the L internals. Instead look at L and/or L which are both part of L. These tools manage TODO as a hub filter. =head3 IPC IPC has not changed much. Load the L module to make sure IPC is loaded if you need it. =head3 CAPABILITIES L has been merged with L in L. =head3 EXPORTER L is completely gone. Use L, L, L, or L. =head3 HASHBASE See L. Change use Test::Stream::HashBase( base => 'Parent::Class', accessors => [qw/foo bar baz/], ); To use parent 'Parent::Class'; use Test2::Util::HashBase qw/foo bar baz/; =head3 EVENTS See L for the new event base class. Very little has changed apart from the HashBase usage. =head3 SYNC L has been replaced by L. One major difference is that L exports functions, you do not call clas methods on it the way you did with L. L also adds and renames several functions. =head3 HUB AND STATE L and L have been merged into L. Methods form both are now in a single class. Some deprecated methods were removed. =head2 TOOLS, PLUGINS, FORMATTERS, ETC. There is a new namespace layout. C has been split into: =over 4 =item Test2::Tools:: Tools live here. =item Test2::Bundle:: Bundles live here. =item Test2::Plugin:: Plugins (behavior modifications) live here. =item Test2::Require:: Things that cause a test to skip all live here. =item Test2::Formatter:: Formatters live here. =back =head3 -V1 L is now spelled L. =head3 -Classic L is now spelled L. =head2 SPEC AND WORKFLOWS All the spec and workflow stuff has moved to L. This was never maked stable so I don't expect anyone to need a conversion guide. =head2 TESTING YOUR TESTS L now exports the C<$events = intercept { ... }> function. =head1 SOURCE The source code repository for Test::Stream can be found at F. =head1 MAINTAINERS =over 4 =item Chad Granum Eexodist@cpan.orgE =back =head1 AUTHORS =over 4 =item Chad Granum Eexodist@cpan.orgE =back =head1 COPYRIGHT Copyright 2015 Chad Granum Eexodist7@gmail.comE. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See F =cut