Test::App::RunCron - test framework for App::RunCron
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';
Test::App::RunCron is a test framework for App::RunCron
runcron_yml_ok($yml_file:Str)
Test $yml_file is valid or not.
$yml_file
$mock_runcron = mock_runcron(%opt)
Return mock object of App::RunCron. It is utility for testing your custom RunCron::Reporter.
App::RunCron
runcron, App::RunCron
Copyright (C) Songmu.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Songmu <y.songmu@gmail.com>
To install App::RunCron, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::RunCron
CPAN shell
perl -MCPAN -e shell install App::RunCron
For more information on module installation, please visit the detailed CPAN module installation guide.