Atsushi Kobayashi > Test-Declare-0.06 > Test::Declare

Download:
Test-Declare-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.06   Source  

NAME ^

Test::Declare - declarative testing

SYNOPSIS ^

    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 ^

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

METHOD ^

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 ^

No bugs have been reported.

SEE ALSO ^

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 ^

Atsushi Kobayashi <nekokak __at__ gmail.com>

tokuhirom

LICENCE AND COPYRIGHT ^

Copyright (c) 2008, Atsushi Kobayashi <nekokak __at__ gmail.com>. All rights reserved.

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

syntax highlighting: