Test::Declare - declarative testing


Test-Declare documentation  | view source Contained in the Test-Declare distribution.

Index


SYNOPSIS

Top

    use strict;
    use warnings;
    use Test::Declare;
    plan tests => blocks;

    describe 'foo bar test' => run {
        init {
            # init..
        };
        test 'foo is bar?' => run {
            is foo, bar;
        };
        cleanup {
            # cleanup..
        };
    };

DESCRIPTION

Top

Test::More, Test::Exception, Test::Deep, Test::Warn and Test::Output wrapper module.

METHOD

Top

describe outline setting.

blocks get test block count.

init definition of init block.

test definition of test block.

run run test code.

cleanup definition of cleanup block.

BUGS AND LIMITATIONS

Top

No bugs have been reported.

SEE ALSO

Top

This test module's core modules

Test::More and Test::Exception and Test::Deep and PPI

Test::Declare's sample tests

DBIx::Class::TableNames 's 01_table_names.t

DBIx::Class::ProxyTable 's 01_proxy.t

AUTHORS

Top

Atsushi Kobayashi <nekokak __at__ gmail.com>

tokuhirom

LICENCE AND COPYRIGHT

Top


Test-Declare documentation  | view source Contained in the Test-Declare distribution.