|
NAMETest::App::RunCron - test framework for App::RunCron SYNOPSIS use Test::App::RunCron;
runcron_yml_ok 'runcron.yml';
my $mock_runcron = mock_runcron;
eval {
MyApp::Reporter->new->run($mock_runcron);
};
ok !$@, 'my reporter ok';
DESCRIPTIONTest::App::RunCron is a test framework for App::RunCron FUNCTIONSruncron_yml_ok($yml_file:Str)Test $yml_file is valid or not. "$mock_runcron = mock_runcron(%opt)"Return mock object of "App::RunCron". It is utility for testing your custom RunCron::Reporter. SEE ALSOruncron, App::RunCron LICENSECopyright (C) Songmu. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHORSongmu <y.songmu@gmail.com>
|