diff --git a/httprunner/__about__.py b/httprunner/__about__.py index 81f127f9..db9ccc04 100644 --- a/httprunner/__about__.py +++ b/httprunner/__about__.py @@ -1,7 +1,7 @@ __title__ = 'HttpRunner' __description__ = 'One-stop solution for HTTP(S) testing.' __url__ = 'https://github.com/HttpRunner/HttpRunner' -__version__ = '1.2.0-beta' +__version__ = '1.2.1-beta' __author__ = 'debugtalk' __author_email__ = 'mail@debugtalk.com' __license__ = 'MIT' diff --git a/httprunner/task.py b/httprunner/task.py index ca0ee5eb..f9033b75 100644 --- a/httprunner/task.py +++ b/httprunner/task.py @@ -215,6 +215,7 @@ class HttpRunner(object): mapping = mapping or {} task_suite = TaskSuite(self.path, mapping) except exception.TestcaseNotFound: + logger.log_error("Testcases not found in {}".format(self.path)) sys.exit(1) result = self.runner.run(task_suite) diff --git a/httprunner/testcase.py b/httprunner/testcase.py index 92ac525c..75df5987 100644 --- a/httprunner/testcase.py +++ b/httprunner/testcase.py @@ -485,6 +485,9 @@ def load_test_file(file_path): api_info.update(item["api"]) testset["api"][func_name] = api_info + else: + logger.log_warning("unexpected block: {}. block should only be config or test.".format(key)) + return testset def get_testinfo_by_reference(ref_name, ref_type):