Skip to content

test: 补充新功能集成测试 + 冒烟测试 + 前端组件测试#59

Open
bob798 wants to merge 2 commits into
mainfrom
test/integration-smoke-tests
Open

test: 补充新功能集成测试 + 冒烟测试 + 前端组件测试#59
bob798 wants to merge 2 commits into
mainfrom
test/integration-smoke-tests

Conversation

@bob798
Copy link
Copy Markdown
Owner

@bob798 bob798 commented May 21, 2026

Summary

为 Issue #42 / #46 / #43 三大新功能补齐测试覆盖:

后端(27 tests):

  • test_articles_episodes_integration.py/articles/episodes/* 路由集成测试 (10)
  • test_library_smoke.py — Library 冒烟 + 边界测试 (17)

前端(16 tests):

  • tokenize-edge.spec.js — tokenize 分词边界用例 (10)
  • WordCard.spec.js — WordCard 组件测试 (6)

修复:

  • usePractice.spec.js 路径 /bbc-eaw/articles/episodes

Test plan

  • 后端 27 新测试全部通过
  • 前端 100 测试全部通过(含 16 新测试)

🤖 Generated with Claude Code

bob798 and others added 2 commits May 22, 2026 00:00
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
新增测试文件:
- tests/test_articles_episodes_integration.py — /articles/episodes/* 路由集成测试 (10)
- tests/test_library_smoke.py — Library 冒烟 + 边界测试 (17)
- frontend/.../tokenize-edge.spec.js — tokenize 分词边界用例 (10)
- frontend/.../WordCard.spec.js — WordCard 组件测试 (6)

覆盖:
- #42: series 字段在 API 响应中的验证、episodes 过滤、start/rate/due 端点
- #46: stream explain 回填、refetch、空输入边界、超长文本截断
- #43: emoji/CJK/标点/换行分词边界、WordCard 渲染/交互/事件

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant