health_check.pl - command line script to execute tests and send an e-mail in case of failures
health_check.pl [options] Options: -a: application name being tested (will be included in the e-mail subject). Required. -d: directory containing the test files. Required. -t: e-mail address to send the report in case of failures. Required. -f: e-mail address of the sender. Required. -s: SMTP server hostname. Optional, defaults to localhost. -h: this help message
This script will execute all tests inside the directory specificed by the -d parameter. Assuming that all the tests are working properly, it will check the results of the tests after execution.
-d
If any failure is detected, an HTML report will be created and send by e-mail.
Tests must procude TAP output. See Test::Harness.
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
This software is copyright (c) 2016 of Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
This file is part of Test-Health distribution.
Test-Health is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Test-Health is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Test-Health. If not, see <http://www.gnu.org/licenses/>.
To install Test::Health, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Health
CPAN shell
perl -MCPAN -e shell install Test::Health
For more information on module installation, please visit the detailed CPAN module installation guide.