If you used the context() method it can now be found in Test2::API, usage
is identical. Converting from Test-Streams context() function could be as
easy as changing use Test::Stream::Context qw/context/ to
use Test2::API qw/context/.
One major gotcha though is that the debug() attribute is gone. Instead there
is a trace() attribute, but its usage is not identical.
TODO and SKIP are no longer managed inside the Context and DebugInfo objects.
Skip is now a full fledged event type Test2::Event::Skip, and
Test2::API::Context has added a skip() method.
TODO is no longer tracked at all by the Test2 internals. Instead look at
Test2::Tools::Todo and/or Test2::Todo which are both part of
Test2::Suite. These tools manage TODO as a hub filter.
IPC has not changed much. Load the Test2::IPC module to make sure IPC is
loaded if you need it.
Test::Stream::Capabilities has been merged with Test::Stream::Util in
Test::Stream::Exporter is completely gone. Use Exporter,
Export::Declare, Exporter::Declare, or Sub::Exporter.
base => Parent::Class,
accessors => [qw/foo bar baz/],
use parent Parent::Class;
use Test2::Util::HashBase qw/foo bar baz/;
See Test2::Event for the new event base class. Very little has changed apart
from the HashBase usage.
Test::Stream::Sync has been replaced by Test2::API. One major difference
is that Test2::API exports functions, you do not call clas methods on it the
way you did with Test2::Sync. Test2::API also adds and renames several
HUB AND STATE
Test::Stream::Hub and Test::Stream::State have been merged into
Test2::API::Stack. Methods form both are now in a single class. Some
deprecated methods were removed.