}
$test_idx = 0;
run_all_tests($test_files, $environment);
$end_time = time();
if ($html_output) {
show_end($end_time);
}
if ($failed_tests_file) {
fclose($failed_tests_file);
}
if (count($test_files) || count($test_results)) {
compute_summary();
if ($html_output) {
fwrite($html_file, "
\n" . get_summary(false, true));
}
echo "=================================================";
echo get_summary(false, false);
}
if ($html_output) {
fclose($html_file);
}
if ($output_file != '' && $just_save_results) {
save_or_mail_results();
}
if (getenv('REPORT_EXIT_STATUS') == 1 and preg_match('/FAILED(?: |$)/', \
implode(' ', $test_results))) {
exit(1);
}
文章来源于领测软件测试网 https://www.ltesting.net/