WMS_MAIN/test_reports/fail/20260411-161359-收货入库相关测试失败简报.md
liufumingren e73a311076 ok
2026-04-11 17:09:06 +08:00

34 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 收货入库相关测试失败简报
## 测试目标
验证收货完成报表相关现有回归测试是否通过:
- [test/app/service/systems/storage.receiving.report.test.js](../../test/app/service/systems/storage.receiving.report.test.js)
## 测试类型
单元测试,兼顾回归验证。
## 测试范围
- 完成收货 Excel 报表生成
- 完成收货通知内容
- 不同配送方式的通知字段展示
- 嵌套 notice 服务形态兼容
- 完成收货后的通知顺序与失败兜底
## 依赖与公共 setup
- 该文件主要是纯单元测试,使用手工构造的 `ctx`、`model`、`service` mock。
- 没有依赖外部数据库或登录态。
## 测试结果摘要
- [test/app/service/systems/storage.receiving.report.test.js](../../test/app/service/systems/storage.receiving.report.test.js): 8 通过,1 失败,0 跳过
## 失败详情
- 失败用例:should build and upload completion excel in a single sheet with one preview column
- 失败原因:断言期望的文件名仍是 `收货完成_RCV202604040001.xlsx`,但实际返回为 `收货明细(已完成收货)_RCV202604040001.xlsx`
- 首个报错位置: [test/app/service/systems/storage.receiving.report.test.js](../../test/app/service/systems/storage.receiving.report.test.js#L260)
## 结论
该文件存在单点回归,当前失败集中在 Excel 报表文件名断言,不影响其余 8 个用例。
## 备注
- 运行命令:`npm run test:local -- test/app/service/systems/storage.receiving.report.test.js --timeout 120000`