Test::ChunksTest::Chunks is a Data Driven Testing Framework. | |
Download |
Test::Chunks Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Brian Ingerson
- Publisher web site:
- http://search.cpan.org/~ingy/CGI-Kwiki-0.18/lib/CGI/Kwiki/New.pm
Test::Chunks Tags
Test::Chunks Description
Test::Chunks is a Data Driven Testing Framework. Test::Chunks is a Data Driven Testing Framework.NOTE - This module has been deprecated and replaced by Test::Base. This is basically just a renaming of the module. Test::Chunks was not the best name for this module. Please discontinue using Test::Chunks and switch to Test::Base.Helpful Hint: change all occurences of chunk to block in your test code, and everything should work exactly the same.SYNOPSIS use Test::Chunks; use Pod::Simple; delimiters qw(=== +++); plan tests => 1 * chunks; for my $chunk (chunks) { # Note that this code is conceptual only. Pod::Simple is not so # simple as to provide a simple pod_to_html function. is( Pod::Simple::pod_to_html($chunk->pod), $chunk->text, $chunk->name, ); } __END__ === Header 1 Test This is an optional description of this particular test. +++ pod =head1 The Main Event +++ html < h1 >The Main Event< /h1 > === List Test +++ pod =over =item * one =item * two =back +++ html < ul > < li >one< /li > < li >two< /li > < /ul >There are many testing situations where you have a set of inputs and a set of expected outputs and you want to make sure your process turns each input chunk into the corresponding output chunk. Test::Chunks allows you do this with a minimal amount of code.Requirements:· Perl Requirements: · Perl
Test::Chunks Related Software