From eca35ebcefacd5e9385085fe6689fef4a48d4696 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Tue, 7 Nov 2017 11:50:38 +0800 Subject: [PATCH] update with PyUnitReport --- httprunner/__init__.py | 2 +- httprunner/cli.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/httprunner/__init__.py b/httprunner/__init__.py index 3376f842..8e62f016 100644 --- a/httprunner/__init__.py +++ b/httprunner/__init__.py @@ -1 +1 @@ -__version__ = '0.8.1a' \ No newline at end of file +__version__ = '0.8.1b' \ No newline at end of file diff --git a/httprunner/cli.py b/httprunner/cli.py index b2c488a4..f90b8ab6 100644 --- a/httprunner/cli.py +++ b/httprunner/cli.py @@ -4,8 +4,9 @@ import os import sys from collections import OrderedDict -import PyUnitReport -from PyUnitReport import __version__ as pyu_version +from pyunitreport import __version__ as pyu_version +from pyunitreport import HTMLTestRunner + from httprunner import __version__ as ate_version from httprunner import exception from httprunner.task import TaskSuite @@ -77,7 +78,7 @@ def main_ate(): "report_name": report_name, "failfast": args.failfast } - result = PyUnitReport.HTMLTestRunner(**kwargs).run(task_suite) + result = HTMLTestRunner(**kwargs).run(task_suite) results[testset_path] = OrderedDict({ "total": result.testsRun, "successes": len(result.successes),