fix(接口测试): 修复接口测试覆盖率跳转时的统计问题

This commit is contained in:
Jianguo-Genius 2024-12-11 18:05:36 +08:00 committed by Craftsman
parent d73b28f0cd
commit a8765a2ef6
1 changed files with 5 additions and 1 deletions

View File

@ -189,7 +189,11 @@ public class ApiDefinitionService extends MoveNodeService {
private List<String> selectApiIdInCaseAndScenarioStep(String projectId, List<String> protocols) { private List<String> selectApiIdInCaseAndScenarioStep(String projectId, List<String> protocols) {
List<String> apiInCase = this.selectApiIdInCase(projectId, protocols); List<String> apiInCase = this.selectApiIdInCase(projectId, protocols);
List<String> apiInScenarioStep = this.selectApiIdInScenarioStep(projectId, protocols, apiInCase); List<String> apiInScenarioStep = this.selectApiIdInScenarioStep(projectId, protocols, apiInCase);
return ListUtils.union(apiInCase, apiInScenarioStep); List<String> returnList = ListUtils.union(apiInCase, apiInScenarioStep);
if (returnList.isEmpty()) {
returnList.add("nonePrepared");
}
return returnList;
} }
private List<String> selectApiIdInCase(String projectId, List<String> protocols) { private List<String> selectApiIdInCase(String projectId, List<String> protocols) {