refactor report: split test suite to separate tables

This commit is contained in:
debugtalk
2018-07-19 15:15:09 +08:00
parent 1f2e0d312a
commit 95db6f22dd
11 changed files with 158 additions and 121 deletions

View File

@@ -206,13 +206,11 @@ class TestcaseLoader(object):
]
@return testset dict
{
"name": "desc1",
"config": {},
"testcases": [testcase11, testcase12]
}
"""
testset = {
"name": "",
"config": {
"path": file_path
},
@@ -228,7 +226,6 @@ class TestcaseLoader(object):
if key == "config":
testset["config"].update(test_block)
testset["name"] = test_block.get("name", "")
elif key == "test":
if "api" in test_block: