diff --git a/TASKLIST.md b/TASKLIST.md index d91b8c3..8f88c19 100644 --- a/TASKLIST.md +++ b/TASKLIST.md @@ -1010,10 +1010,25 @@ **目标** - 覆盖 registry、pairing、auth、heartbeat sweep +**当前进展(2026-04-09)** +- 已为 `Yonexus.Server` 接入 `vitest` 测试基础设施(`package.json` + `vitest.config.ts`) +- 已新增 `tests/pairing-and-rules.test.ts` +- 已覆盖 pairing request 创建、有效/无效/过期 code 校验、通知状态迁移 +- 已覆盖 server rule registry 的 exact-match dispatch、保留字拒绝、重复注册拒绝 +- **待补**:auth 校验、runtime/registry 协作、heartbeat/liveness sweep 相关测试 + ### YNX-1103 编写 Client 单元测试 **目标** - 覆盖状态机、keypair、auth 构造、heartbeat timer +**当前进展(2026-04-09)** +- 已为 `Yonexus.Client` 接入 `vitest` 测试基础设施(`package.json` + `vitest.config.ts`) +- 已新增 `tests/state-and-rules.test.ts` +- 已覆盖 client state 文件缺失初始化、状态保存/回读 +- 已覆盖 `ensureClientKeyPair()` 的首次生成/重复调用复用,以及签名/验签基本链路 +- 已覆盖 client rule registry 的 dispatch、保留字拒绝、重复注册拒绝 +- **待补**:runtime 状态机、auth_request 构造细节、heartbeat timer 与重连行为测试 + ### YNX-1104 编写 Server-Client 集成测试 **目标** - 覆盖首次配对、正常重连、认证失败、心跳超时、re-pair diff --git a/Yonexus.Client b/Yonexus.Client index 4322604..8240191 160000 --- a/Yonexus.Client +++ b/Yonexus.Client @@ -1 +1 @@ -Subproject commit 4322604f78da710b9a1f9fe8b57b1459c2088328 +Subproject commit 824019168e8acc9c39ce341854f20b630d10879d diff --git a/Yonexus.Server b/Yonexus.Server index 25e1867..b8008d9 160000 --- a/Yonexus.Server +++ b/Yonexus.Server @@ -1 +1 @@ -Subproject commit 25e1867adff0a7a473ad287da3c955ba4f65492d +Subproject commit b8008d930221df26256a0610bde77c981bd0f18b