Skip to content

建立 P0 API、SQL、权限、检索与 UI 回归测试 #38

Description

@dzx0902

ID: I037
Epic: Epic 10:测试、演示数据与最终汇报
Priority: priority: p0
Milestone: M6 - Final Report & Presentation
Template: task
Depends On: I021, I023, I024, I029, I032, I033, I034, I035

背景

Done 必须等于已实现并验证;P0 闭环涉及数据库、后端、前端和演示数据,需要系统测试兜底。

目标

建立覆盖 P0 演示闭环的自动化与手动回归测试清单。

任务清单

  • 增加 API 测试:source import、memory CRUD、recall、wiki export、audit。
  • 增加 SQL 测试:schema 初始化、seed、views、triggers、demo queries。
  • 增加前端 smoke 测试或手动 QA 清单,覆盖 Dashboard、Source、Memory、Recall、Wiki。

涉及文件

  • backend/tests/
  • database/08_demo_queries.sql
  • docs/10-test-plan.md
  • docs/11-demo-script.md

涉及数据表

  • source_document
  • source_chunk
  • memory_item
  • memory_evidence
  • memory_revision
  • audit_log
  • recall_log
  • wiki_page
  • wiki_page_revision

涉及 API

  • POST /api/sources
  • POST /api/memories
  • PATCH /api/memories/{id}
  • POST /api/recall
  • POST /api/wiki/export
  • GET /api/audit

验收标准

  • 测试能跑通“导入 6 份 source → 20 memory → recall → revision/audit → 3 wiki”闭环。
  • CI 至少运行后端测试、SQL 初始化和前端构建。
  • 失败用例返回明确错误,不能用空默认值掩盖问题。

依赖关系

Depends on: I021, I023, I024, I029, I032, I033, I034, I035

备注

Module 建议:QA / Regression。


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions