GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEST::STREAM::BUNDLE::CLASSIC (3)

.ds Aq ’

NAME

Test::Stream::Bundle::Classic - Bundle that emulates most of Test::More.

CONTENTS

DEPRECATED

<B>This distribution is deprecatedB> in favor of Test2, Test2::Suite, and Test2::Workflow.

See Test::Stream::Manual::ToTest2 for a conversion guide.

DESCRIPTION

SYNOPSIS

<B>Note:B> Only the most common functions are listed here. Please see individual plugins for their functions.



    use Test::Stream -Classic;

    ok(1, "This is a pass");
    ok(0, "This is a fail");

    is($foo, $bar, "These are the same using string comparison");

    like($foo, qr/x/, "This string matches this pattern");

    is_deeply({a => $foo}, {a => $foo}, "deep comparison");

    done_testing;



INCLUDED TOOLS

Classic => [’is’, ’isnt’, like’, ’unlike’, ’is_deeply’] This provides the is() and is_deeply() functions. These versions of the function behave much like the Test::Stream implementations, but with more diagnostics. These both use the eq operator when comparing scalar values.

See Test::Stream::Plugin::Classic for more details.

Compare => [’like’] This provides like(). This can also provide other tools to make deep comparisons easier, but they are not imported by default.

See Test::Stream::Plugin::Compare for more details.

Core This provides essential tools such as ok(), done_testing(), as well as others.

See Test::Stream::Plugin::Core for more details.

ExitSummary This provides extra diagnostics at the end of failing tests.

See Test::Stream::Plugin::ExitSummary for more details.

IPC This loads IPC support so that threading and forking just work.

See Test::Stream::Plugin::IPC for more details.

TAP This sets TAP to be the default output format.

See Test::Stream::Plugin::TAP for more details.

Subtest This adds the subtest($name, sub { ... }) function. The output of this one is a little different from Test::More as it is buffered, that is doesn’t gt rendered until the subtest is done. This is important for concurrency support.

You can get the old style subtests this way:



    use Test::Stream -Classic, Subtest => [streamed];



SOURCE

The source code repository for Test::Stream can be found at http://github.com/Test-More/Test-Stream/.

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

COPYRIGHT

Copyright 2015 Chad Granum <exodist7@gmail.com>.

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

See http://dev.perl.org/licenses/

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEST::STREAM::BUNDLE::CLASSIC (3) 2016-02-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.