t/14_cover_conditions....ok 1/19
# Failed (TODO) test 'Test suite run without results_recipient defined.'
# at t/14_cover_conditions.t line 99.
# STDOUT is:
#
# not:
#
#
# as expected
t/14_cover_conditions....ok 13/19
# Failed (TODO) test 'Test suite ran without any critical errors'
# at t/14_cover_conditions.t line 123.
# STDOUT is:
#
# not:
# ok 1 - Successfully linked to http://www.perlmonks.com.
#
# ok 2 - . . . and found expected content at http://www.perlmonks.com
#
# ok 3 - Successfully linked to http://validator.w3.org/.
#
# ok 4 - . . . and found expected content at http://validator.w3.org/
#
# ok 5 - Successfully linked to http://www.cpan.org.
#
# ok 6 - . . . and found expected content at http://www.cpan.org
#
# ok 7 - Successfully linked to http://www.campaignfoundations.com.
#
# ok 8 - . . . and found expected content at http://www.campaignfoundations.com
#
# as expected
t/14_cover_conditions....ok
1/19 unexpectedly succeeded
TODO PASSED test 12
All tests successful (1 subtest UNEXPECTEDLY SUCCEEDED).
Passed TODO Stat Wstat TODOs Pass List of Passed
-------------------------------------------------------------------------------
t/14_cover_conditions.t 3 1 12
Files=1, Tests=19, 11 wallclock secs ( 0.39 cusr + 0.03 csys = 0.42 CPU)
####
1..19
ok 1 - Test suite produced the expected successes and errors.
ok 2 - Successfully linked to http://www.perlmonks.com.
#
ok 3 - . . . and found expected content for http://www.perlmonks.com.
#
ok 4 - Successfully linked to http://www.campaignfoundations.com.
#
ok 5 - . . . and found expected content for http://www.campaignfoundations.com.
#
ok 6 - All tests passed, no text message sent
ok 7 - Configuration file set send_summary = 0, no email sent
ok 8 - Configuration file set send_diagnostics = 0, so diagnostics not sent
ok 9 - Basic tests seem to work.
ok 10 - Seems to return the correct result_log
not ok 11 - Test suite run without results_recipient defined. # TODO On the bleeding edge ofdevelopment . . .
# Failed (TODO) test 'Test suite run without results_recipient defined.'
# at t/14_cover_conditions.t line 99.
# STDOUT is:
#
# not:
#
#
# as expected
ok 12 - No result_recipient defined, so no email will be sent. # TODO On the bleeding edge of development . . .
not ok 13 - Test suite ran without any critical errors # TODO On the bleeding edge, no critical error report.
# Failed (TODO) test 'Test suite ran without any critical errors'
# at t/14_cover_conditions.t line 123.
# STDOUT is:
#
# not:
# ok 1 - Successfully linked to http://www.perlmonks.com.
#
# ok 2 - . . . and found expected content at http://www.perlmonks.com
#
# ok 3 - Successfully linked to http://validator.w3.org/.
#
# ok 4 - . . . and found expected content at http://validator.w3.org/
#
# ok 5 - Successfully linked to http://www.cpan.org.
#
# ok 6 - . . . and found expected content at http://www.cpan.org
#
# ok 7 - Successfully linked to http://www.campaignfoundations.com.
#
# ok 8 - . . . and found expected content at http://www.campaignfoundations.com
#
# as expected
ok 14 - No critical errors found.
ok 15 - No servers had errors.
ok 16 - Eight tests were run.
ok 17 - Four sites were tested.
ok 18 - Sites on four IPs were tested.
ok 19 - Tests: 8, IPs: 4, Sites: 4, CFs: 0; No critical errors found.
####
TODO:
{
local $TODO = "On the bleeding edge of development . . . ";
$tester->{'error'} = undef;
$tester->{'config'}->delete('global.results_recipients');
test_out('');
$tester->test_sites();
test_test( name => "Test suite run without results_recipient defined.",
skip_err => 1 );
like($tester->{'error'},qr/no result_recipient defined/,'No result_recipient defined, so no
email will be sent.');
}
# diag("Pierre requested report on all success.");
$config_file = "$cwd/t/testsuite_all_ok.ini";
$tester = Test::MonitorSites->new( { 'config_file' => $config_file } );
test_out("ok 1 - Successfully linked to http://www.perlmonks.com.",
"ok 2 - . . . and found expected content at http://www.perlmonks.com",
"ok 3 - Successfully linked to http://validator.w3.org/.",
"ok 4 - . . . and found expected content at http://validator.w3.org/",
"ok 5 - Successfully linked to http://www.cpan.org.",
"ok 6 - . . . and found expected content at http://www.cpan.org",
"ok 7 - Successfully linked to http://www.campaignfoundations.com.",
"ok 8 - . . . and found expected content at http://www.campaignfoundations.com");
$tester->test_sites();
TODO:
{
local $TODO = "On the bleeding edge, no critical error report.";
test_test( name => "Test suite ran without any critical errors",
skip_err => 1 );
}
# exit;
is($tester->{'result'}->{'critical_errors'},0,'No critical errors found.');
is($tester->{'result'}->{'servers_with_failures'},0,'No servers had errors.');
is($tester->{'result'}->{'tests'},8,'Eight tests were run.');
is($tester->{'result'}->{'sites'},4,'Four sites were tested.');
is($tester->{'result'}->{'ips'},4,'Sites on four IPs were tested.');
is($tester->{'result'}->{'message'},'Tests: 8, IPs: 4, Sites: 4, CFs: 0; No critical errors f
ound.','Tests: 8, IPs: 4, Sites: 4, CFs: 0; No critical errors found.');