diff --git a/Local-Development-and-Verification.-.md b/Local-Development-and-Verification.-.md index 8e9999e..baf7145 100644 --- a/Local-Development-and-Verification.-.md +++ b/Local-Development-and-Verification.-.md @@ -419,3 +419,25 @@ go test ./cmd/migrate/migration/version -run TestLocalEventMigrationOnPostgres - 验证应覆盖:candidate/confirmed 与 pending/success/failed 的独立组合、分页和时间/状态/关键词筛选、详情及保留提示、viewer/实施/站点管理员只读权限、操作审计,以及 Brain/Bell 均未启动时的合成候选 smoke。没有可用 PostgreSQL 测试连接时必须明确记录为未验证,不得以 SQLite 单测替代 PostgreSQL 结论。 + + +### Sense 运维中心验证 + +定向验证: + +```powershell +cd Sense/server +go test -race ./app/sense/operations +go test ./app/admin/router ./cmd/migrate/migration/version +go test ./... +go vet ./... +go build ./... + +cd ../ui +corepack pnpm@9.15.1 lint +corepack pnpm@9.15.1 test:unit +corepack pnpm@9.15.1 build:prod +``` + +合成 smoke 应覆盖设备认证失败、设备时间漂移、媒体退避、孤儿路由、本地推理 unavailable、筛选分页、详情、设备同步探测重试、媒体排队重试、版本冲突、在途防重和脱敏审计。Brain/Bell 不应启动或成为测试依赖。真实摄像头与 MediaMTX 故障恢复仍须在获准环境验证,日志不得记录设备地址、Stream URI 或凭据。 +