WWW::BookBot::Test - Test utilities for inherited bot of WWW::BookBot.
use Test::More tests => 37; BEGIN { use_ok('WWW::BookBot::Test'); use_ok(test_init('WWW::BookBot')); }; test_begin(); ... test_end();
Test utilities for inherited classes of WWW::BookBot.
WWW::BookBot::Test provides basic test routines for inherited classes of WWW::BookBot.
test_init($classname) will set internal test classname and return $classname. test_begin() will initialize test environment. test_end() will close test environment.
new_bot({...}) new_bots a new $bot using given classname and arguments. read_file($filename) returns all contents of $filename. dump_class() dumps out first level of class. dump_var($var_name) dumps out all about $var_name of class. test_pattern($pattern_name, $content) tests given pattern with $content.
all functions are exported.
Please report any requests, suggestions or bugs via http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-BookBot
Qing-Jie Zhou <qjzhou@hotmail.com>
WWW::BookBot
To install WWW::BookBot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::BookBot
CPAN shell
perl -MCPAN -e shell install WWW::BookBot
For more information on module installation, please visit the detailed CPAN module installation guide.