Sfoglia il codice sorgente

test(R218): 覆盖台账刷新(discover 373 控制器/2026 handler/覆盖 557;inventory 5943 例)

E2E Test Bot 1 giorno fa
parent
commit
51851831ac
3 ha cambiato i file con 1916 aggiunte e 1479 eliminazioni
  1. 952 733
      docs/tdd/test/automation-status.md
  2. 13 16
      docs/tdd/test/discovery.md
  3. 951 730
      docs/tdd/test/inventory.md

File diff suppressed because it is too large
+ 952 - 733
docs/tdd/test/automation-status.md


+ 13 - 16
docs/tdd/test/discovery.md

@@ -7,22 +7,22 @@
 
 | 指标 | 数值 |
 | --- | --- |
-| 控制器总数 | 372 |
-| handler 方法总数 | 2021 |
-| handler 方法已覆盖 | 556 (27.5%) |
+| 控制器总数 | 373 |
+| handler 方法总数 | 2026 |
+| handler 方法已覆盖 | 557 (27.5%) |
 | 单元-全覆盖(handler 方法) | 47 |
 | 单元-部分覆盖(handler 方法) | 206 |
-| 单元-未覆盖(handler 方法) | 118 |
+| 单元-未覆盖(handler 方法) | 119 |
 | 单元-无handler 方法 | 1 |
-| 测试文件数 | 513 |
-| @Test 方法总数 | 4376 |
+| 测试文件数 | 510 |
+| @Test 方法总数 | 4377 |
 | 含跳过/假设项(test 级 partial) | 4 |
 
 ## 二、未覆盖控制器(发现「缺口」· 非发明)
 
 > 以下控制器在当前测试源中**没有任何handler 方法被命中**。这是真实扫描得到的覆盖缺口。
 
-共 118 个:
+共 119 个:
 
 - `OrchestrationController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/OrchestrationController.java`,15 方法)
 - `KeyPersonController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/KeyPersonController.java`,14 方法)
@@ -83,8 +83,8 @@
 - `AdminEarningsController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/admin/AdminEarningsController.java`,3 方法)
 - `AdminGrowthArchiveProductController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/admin/AdminGrowthArchiveProductController.java`,3 方法)
 - `AssessmentController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/guide/AssessmentController.java`,3 方法)
-- `DailyFeedbackController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/DailyFeedbackController.java`,3 方法)
-- …(其余 58 个见完整扫描)
+- `ContactImportController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/ContactImportController.java`,3 方法)
+- …(其余 59 个见完整扫描)
 
 ## 三、部分覆盖控制器(已做一部分测试)
 
@@ -132,18 +132,18 @@
 - `SubscriptionController`:覆盖 1/10,未覆盖方法:getPlans、createOrder、subscribe、cancel、setAutoRenew、getMyBenefits、checkBenefit、getTier、updateTier
 - `TeacherController`:覆盖 1/10,未覆盖方法:getTeacherInfo、getTaskList、createClass、getClassList、getClassStudents、addStudentToClass、removeStudentFromClass、getStudentProgress、getClassReport
 - `AdminProductController`:覆盖 2/9,未覆盖方法:review、shelve、detail、create、update、copy、delete
+- `ContactController`:覆盖 1/9,未覆盖方法:create、update、delete、detail、importPhone、importGroup、interaction、inviteToFamily
 - `EnergyController`:覆盖 7/9,未覆盖方法:configureSourceRatios、getWealthDetail
 - `FileRecordController`:覆盖 1/9,未覆盖方法:upload、update、deleteFile、getTags、tagCreate、tagUpdate、tagDelete、stats
 - `FiveDimensionSelfCheckController`:覆盖 4/9,未覆盖方法:getHistory、ignoreSelfCheck、generatePlan、getTrendAnalysis、aiGenerateQuestions
+- `GrowthPlanController`:覆盖 2/9,未覆盖方法:createPlan、getChildPlans、getActivePlan、getPlanProgress、getPlanDetail、updatePlan、reviewPlan
 - `KnowledgeBaseController`:覆盖 1/9,未覆盖方法:backfillTags、get、save、delete、bindDimensions、bindTags、uploadFile、fetchUrl
 - `ProductController`:覆盖 6/9,未覆盖方法:updateImages、specMap、relatedProducts
 - `AdminActivityController`:覆盖 5/8,未覆盖方法:review、detail、backfillTags
 - `ArticleCommentController`:覆盖 1/8,未覆盖方法:createComment、auditComment、getPendingComments、getMyComments、completeRead、generateQuiz、submitQuiz
 - `CognitiveController`:覆盖 3/8,未覆盖方法:updateCognitiveScore、getRecommendations、createTaskFromRecommendation、getNorms、submitSelfTest
-- `ContactController`:覆盖 1/8,未覆盖方法:create、update、delete、detail、importPhone、interaction、inviteToFamily
 - `DanReportController`:覆盖 1/8,未覆盖方法:upload、edit、confirm、discard、completeAnalysis、detail、compare
 - `FamilyChallengeController`:覆盖 1/8,未覆盖方法:getHistory、updateProgress、respondChallenge、getTemplates、createChallenge、updateChallenge、deleteChallenge
-- `GrowthPlanController`:覆盖 1/8,未覆盖方法:createPlan、getChildPlans、getActivePlan、getPlanProgress、getPlanDetail、updatePlan、reviewPlan
 - `GuideTeamController`:覆盖 6/8,未覆盖方法:checkStatus、leaveTeam
 - `SupplyManageController`:覆盖 3/8,未覆盖方法:detail、update、addRole、removeRole、adjustTier
 - `AdminOrgController`:覆盖 1/7,未覆盖方法:create、update、disable、detail、myOrg、userSearch
@@ -481,6 +481,7 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/config/JwtInterceptorContractEdgeTest.java` | com | 10 | 2 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/PlanDraftSaveContractTest.java` | com | 10 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/ProductReviewCreateContractTest.java` | com | 10 | 0 | 0 | ProductController | — |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/ProductReviewMyContractTest.java` | com | 10 | 0 | 0 | ProductController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/ProductVisibilitySupportTest.java` | com | 10 | 0 | 0 | ProductController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/ShopOrderCreateSpecialDealContractTest.java` | com | 10 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/controller/config/SleepConfigTagsMechanismContractTest.java` | com | 10 | 3 | 3 | — | — |
@@ -508,6 +509,7 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/PlanContentSafetyReviewContractTest.java` | com | 9 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/integration/PlannerBindInviteFlowTest.java` | com | 9 | 15 | 5 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/PlatformPointsServiceTest.java` | com | 9 | 2 | 0 | — | — |
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/ProductReviewDetailContractTest.java` | com | 9 | 0 | 0 | ProductController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/RewardRuleServiceBatchEstimateTest.java` | com | 9 | 0 | 0 | RewardController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/controller/ScG04InviteRegisterContractTest.java` | com | 9 | 1 | 3 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/SpecialPriceServiceTest.java` | com | 9 | 0 | 0 | SpecialPriceController | — |
@@ -667,13 +669,11 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/FamilyNamingSupportTest.java` | com | 5 | 0 | 0 | FamilyController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyPlatformPointsServiceCouponTest.java` | com | 5 | 0 | 0 | FamilyController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GlobalSearchScP82ContractTest.java` | com | 5 | 12 | 0 | — | — |
-| `cfc-backend/src/test/java/com/etotem/cfc/config/GrowthPublicEndpointMappingTest.java` | com | 5 | 0 | 0 | GrowthController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheVersionSplitContractTest.java` | com | 5 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideFamilyTaskReviewContractTest.java` | com | 5 | 2 | 2 | GuideController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanLazyBackfillTest.java` | com | 5 | 0 | 0 | HealthPlanController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/controller/HealthReportControllerCreateReportTest.java` | com | 5 | 2 | 0 | HealthReportController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/HealthReportServiceBackfillResilienceTest.java` | com | 5 | 7 | 0 | HealthReportController | — |
-| `cfc-backend/src/test/java/com/etotem/cfc/config/JwtInterceptorGrowthPolicyTest.java` | com | 5 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/config/JwtInterceptorLoginRequiredTest.java` | com | 5 | 0 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/LangGraphErrorPropagateContractTest.java` | com | 5 | 1 | 0 | — | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/integration/service/MiniGameServiceTest.java` | com | 5 | 0 | 0 | MiniGameController | — |
@@ -727,9 +727,7 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/dto/ActivityDTOTest.java` | com | 3 | 0 | 0 | ActivityController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/ActivityRegistrationListTest.java` | com | 3 | 5 | 0 | ActivityController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/ActivityRegistrationRejectTest.java` | com | 3 | 0 | 0 | ActivityController | — |
-| `cfc-backend/src/test/java/com/etotem/cfc/controller/admin/AdminFamilyOverviewControllerTest.java` | com | 3 | 2 | 0 | AdminFamilyOverviewController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/AdminFamilyOverviewControllerTest.java` | com | 3 | 0 | 2 | AdminFamilyOverviewController | — |
-| `cfc-backend/src/test/java/com/etotem/cfc/controller/shop/AfterSalesCancelControllerTest.java` | com | 3 | 1 | 0 | AfterSalesController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/ArticleAudioServiceAutoGenTest.java` | com | 3 | 0 | 0 | ArticleController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/service/ArticleAudioServiceChunkFilterTest.java` | com | 3 | 0 | 0 | ArticleController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/ArticleCategoryControllerTest.java` | com | 3 | 0 | 1 | ArticleCategoryController | — |
@@ -768,7 +766,6 @@
 | `cfc-backend/src/test/java/com/etotem/cfc/service/UserServiceOpenidIsolationTest.java` | com | 3 | 3 | 0 | UserController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/controller/admin/AdminCommissionConfigPartialUpdateTest.java` | com | 2 | 0 | 1 | AdminCommissionConfigController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/ArticleBackfillTest.java` | com | 2 | 0 | 0 | ArticleController | — |
-| `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/ArticleTagsContractTest.java` | com | 2 | 0 | 1 | ArticleController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AssessmentAppointmentCreateContractTest.java` | com | 2 | 0 | 0 | AssessmentAppointmentController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AttributionPipelineMockTest.java` | com | 2 | 38 | 0 | AttributionController | — |
 | `cfc-backend/src/test/java/com/etotem/cfc/unit/AttributionPlanServiceTest.java` | com | 2 | 8 | 0 | AttributionController | — |

File diff suppressed because it is too large
+ 951 - 730
docs/tdd/test/inventory.md


Some files were not shown because too many files changed in this diff