add testcase content check

This commit is contained in:
httprunner
2017-11-02 11:49:43 +08:00
parent d8630213f1
commit eac1173cd7
5 changed files with 92 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ import os
import sys
from collections import OrderedDict
from ate import __version__
from ate import __version__, exception
from ate.task import TaskSuite
from ate.utils import create_scaffold
@@ -62,7 +62,12 @@ def main_ate():
for testset_path in set(args.testset_paths):
testset_path = testset_path.rstrip('/')
task_suite = TaskSuite(testset_path)
try:
task_suite = TaskSuite(testset_path)
except exception.FileFormatError:
success = False
continue
output_folder_name = os.path.basename(os.path.splitext(testset_path)[0])
kwargs = {