Commit Graph

22 Commits

Author SHA1 Message Date
Your Name
777b60e974 test: 继续提升PosterRenderService测试覆盖率
- 新增5个测试用例,覆盖background处理的所有分支
  - 测试background图片加载成功场景
  - 测试background图片加载失败降级到背景色
  - 测试background为空白字符串时使用背景色
  - 测试HTML渲染中的background-image样式
  - 测试URL编码异常处理

覆盖率提升:
- PosterRenderService: 68% → 74% (+6%)
- Service包: 72% → 74% (+2%)
- 总体分支: 57% (372/646)
- 测试用例: 8 → 13 (+5)
2026-03-03 10:41:58 +08:00
Your Name
f8ed2defb7 test: 提升PosterRenderService测试覆盖率
- 新增6个测试用例,覆盖更多分支场景
  - 测试template为null时使用默认模板
  - 测试button元素的background和borderRadius
  - 测试null content处理
  - 测试rect元素渲染(有/无background)

覆盖率提升:
- PosterRenderService: 59% → 68% (+9%)
- Service包: 70% → 72% (+2%)
- 总体分支: 56% (367/646)
2026-03-03 10:30:19 +08:00
Your Name
a21f39a8ec test: 提升测试覆盖率 - 添加ApiResponseTest和RewardTest,修复ShareTrackingControllerTest
- 新增ApiResponseTest: 19个测试用例,覆盖ApiResponse及其内部类
  - 测试成功响应、错误响应、分页响应
  - 测试PaginationMeta的分页计算逻辑
  - 测试Meta和Error内部类
  - 测试Builder模式
- 新增RewardTest: 完整的领域对象测试
  - 测试POINTS和COUPON两种奖励类型
  - 测试equals/hashCode实现
  - 测试边界条件
- 修复ShareTrackingControllerTest编译错误
  - 移除重复的测试方法
  - 添加缺失的AssertJ静态导入

当前覆盖率: 指令83%, 分支56%, 行90.24%
目标: 分支覆盖率达到85%
2026-03-03 10:23:32 +08:00
Your Name
49dfb3abd2 docs: 添加测试覆盖率提升报告
- 添加 COVERAGE_IMPROVEMENT_REPORT.md 详细记录覆盖率提升过程
- 更新 COMPLETION_SUMMARY.md
- 覆盖率当前状态:
  - 指令: 83.04% (+1.15%)
  - 分支: 55.11% (+3.56%)
  - 行: 90.24% (+1.76%)
- 新增45个测试用例
2026-03-02 15:25:49 +08:00
Your Name
3e2d1ece71 test: 提升测试覆盖率 - 添加拦截器和UrlValidator测试
- 新增 ApiResponseWrapperInterceptorTest (完整测试)
- 新增 ApiKeyAuthInterceptorTest (完整测试)
- 新增 UrlValidatorTest (完整测试)
- 覆盖率提升:
  - 指令覆盖率: 81.89% → 83.59%
  - 分支覆盖率: 51.55% → 57.12%
  - 行覆盖率: 88.48% → 90.51%
- 新增测试用例覆盖:
  - API版本头设置逻辑
  - API Key认证流程(null/空白/吊销/哈希验证)
  - URL验证(协议/localhost/私有IP/特殊地址)
  - 边界条件和异常处理
2026-03-02 15:22:12 +08:00
Your Name
fe1e426389 chore: 添加.gitignore和项目状态报告
- 添加 .gitignore 排除临时文件、构建产物、IDE配置等
- 添加 PROJECT_STATUS_REPORT.md 详细记录项目当前状态
  - 覆盖率: 指令81.89%, 行88.48%, 分支51.55%
  - 1266个测试用例全部通过
  - 核心功能模块完成情况
  - 待办事项和技术债务清单
2026-03-02 13:35:31 +08:00
Your Name
91a0b77f7a test(cache): 修复CacheConfigTest边界值测试
- 修改 shouldVerifyCacheManager_withMaximumIntegerTtl 为 shouldVerifyCacheManager_withMaximumAllowedTtl
- 使用正确的最大TTL值(10080分钟,7天)而不是 Integer.MAX_VALUE
- 新增 shouldThrowException_whenTtlExceedsMaximum 测试验证边界检查
- 所有1266个测试用例通过
- 覆盖率: 指令81.89%, 行88.48%, 分支51.55%

docs: 添加项目状态报告
- 生成 PROJECT_STATUS_REPORT.md 详细记录项目当前状态
- 包含质量指标、已完成功能、待办事项和技术债务
2026-03-02 13:31:54 +08:00
Your Name
32d6449ea4 feat(jpa): persist Activity in create/update/get with defaults; fix H2 defaults; replace existence checks with repository 2025-09-30 21:20:20 +08:00
Your Name
2f5f819c0d feat(jpa): add JPA entities and repositories aligned to Flyway; chore(deps): remove unused AMQP deps 2025-09-30 21:01:26 +08:00
Your Name
e8fc04886e feat(perf): remove Thread.sleep via DelayProvider; chore(cache): add Redis cache TTL + JDK serialization; chore(test): migrate javax->jakarta for embedded redis; chore(config): add dev/test/prod profiles; chore(security): strengthen API key hashing with PBKDF2 2025-09-30 20:34:39 +08:00
Your Name
e98be2624d ci(woodpecker): preflight 2025-09-30 20:21:10 +08:00
Your Name
f63a59a150 ci(actions): target runner label 'gitea-runner-host' for both jobs 2025-09-30 20:18:49 +08:00
Your Name
497039451f ci(actions): accept secret 'giteatoken' as fallback for auto-merge 2025-09-30 20:15:29 +08:00
Your Name
641158a580 ci(actions): target self-hosted runners and use Maven container to provide Java+Maven 2025-09-30 19:47:06 +08:00
Your Name
0eb81d216c ci(actions): run build in maven:3.9-eclipse-temurin-17 to provide Java+Maven 2025-09-30 19:44:58 +08:00
Your Name
1e6be7e995 ci(actions): use ubuntu-latest label; add auto-merge job gated by success (requires GITEA_TOKEN secret) 2025-09-30 19:39:15 +08:00
Your Name
6712d83a85 ci(actions): run on self-hosted environment (no container) 2025-09-30 19:15:00 +08:00
Your Name
db9d9d38ef Merge remote-tracking branch 'origin/main' into 004-system-integration
Some checks failed
CI / build_test_package (push) Has been cancelled
2025-09-30 18:16:26 +08:00
shenyi
9a65c32d92 Initial commit 2025-09-30 17:40:10 +08:00
Your Name
344d473ca1 ci(actions): add Gitea Actions workflow; docs: note CI path in tasks 2025-09-30 16:47:26 +08:00
Your Name
63a5ee87af ci: add Woodpecker pipeline; docs: add review and tasks; docs: add AGENTS.md 2025-09-30 16:42:04 +08:00
Your Name
8a7afc8a00 chore: initial commit with CI pipeline, review and tasks docs 2025-09-30 16:39:51 +08:00