Skip to content

Commit 7bb6a4b

Browse files
committed
filename will be assigned as module name.
1 parent 9f0a14b commit 7bb6a4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

createjsfiles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function parseXmlFilesIntoJS(result) {
5353
test["status"] = "PASSED";
5454
test["log"] = "";
5555
}
56-
module = resultJson.testcase.classname.split('.')[0];
56+
module = path.basename(file, '.xml');
5757
dataSet.push("\"" + module + "\":[" + JSON.stringify(resultJson.testcase) + "]");
5858

5959
} else {
@@ -77,7 +77,7 @@ async function parseXmlFilesIntoJS(result) {
7777
test["log"] = "";
7878
}
7979
});
80-
module = resultJson.testcase[0].classname.split('.')[0];
80+
module = path.basename(file, '.xml');
8181
dataSet.push("\"" + module + "\":" + JSON.stringify(resultJson.testcase));
8282
}
8383

0 commit comments

Comments
 (0)