mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
ate: print output after tests
This commit is contained in:
@@ -78,6 +78,9 @@ def main_ate():
|
|||||||
if len(result.successes) != result.testsRun:
|
if len(result.successes) != result.testsRun:
|
||||||
subject = "FAILED"
|
subject = "FAILED"
|
||||||
|
|
||||||
|
for task in task_suite:
|
||||||
|
task.print_output()
|
||||||
|
|
||||||
flag_code = 0 if subject == "SUCCESS" else 1
|
flag_code = 0 if subject == "SUCCESS" else 1
|
||||||
if mailer and mailer.config_ready:
|
if mailer and mailer.config_ready:
|
||||||
mailer.send_mail(subject, results, flag_code)
|
mailer.send_mail(subject, results, flag_code)
|
||||||
|
|||||||
Reference in New Issue
Block a user