From 910ed2232cdfdb5c4458340cb396e1b3f5e9507c Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 26 Nov 2024 13:39:48 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=8D=95=E6=B5=8B=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/api/controller/ApiCalculateTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/services/api-test/src/test/java/io/metersphere/api/controller/ApiCalculateTest.java b/backend/services/api-test/src/test/java/io/metersphere/api/controller/ApiCalculateTest.java index a25d6a377e..6eb28925f9 100644 --- a/backend/services/api-test/src/test/java/io/metersphere/api/controller/ApiCalculateTest.java +++ b/backend/services/api-test/src/test/java/io/metersphere/api/controller/ApiCalculateTest.java @@ -227,11 +227,11 @@ public class ApiCalculateTest extends BaseTest { Assertions.assertEquals(apiCoverageDTO.getApiCaseCoverage(), CalculateUtils.reportPercentage(apiCoverageDTO.getCoverWithApiCase(), apiCoverageDTO.getAllApiCount())); Assertions.assertEquals(4, apiCoverageDTO.getCoverWithApiScenario()); - Assertions.assertEquals(12, apiCoverageDTO.getUnCoverWithApiScenario()); + Assertions.assertEquals(16, apiCoverageDTO.getUnCoverWithApiScenario()); Assertions.assertEquals(apiCoverageDTO.getScenarioCoverage(), CalculateUtils.reportPercentage(apiCoverageDTO.getCoverWithApiScenario(), apiCoverageDTO.getAllApiCount())); - Assertions.assertEquals(10, apiCoverageDTO.getCoverWithApiDefinition()); - Assertions.assertEquals(10, apiCoverageDTO.getUnCoverWithApiDefinition()); + Assertions.assertEquals(6, apiCoverageDTO.getCoverWithApiDefinition()); + Assertions.assertEquals(14, apiCoverageDTO.getUnCoverWithApiDefinition()); Assertions.assertEquals(apiCoverageDTO.getApiCoverage(), CalculateUtils.reportPercentage(apiCoverageDTO.getCoverWithApiDefinition(), apiCoverageDTO.getAllApiCount())); Assertions.assertEquals("0.00%", CalculateUtils.reportPercentage(0, 0));