2.7 KiB
2.7 KiB
测试结果
- 状态: SKIP
- 分类: 镜像
- 文件: app/controller/system.user.loginByCode.test.js
- 源: mirror
- 测试类型: 自动化文件级执行
- 测试账号: liufumingren
- 测试仓 ID: 100000
- 测试货主 ID: 1000000
- 开始时间: 2026-04-10T13:06:23.861Z
- 结束时间: 2026-04-10T13:06:25.352Z
- 耗时(秒): 1
- 退出码: 1
- 说明: 环境/数据缺失: ECONNREFUSED
执行输出摘录
[egg-ts-helper] create typings\app\extend\application.d.ts (2ms)
[egg-ts-helper] create typings\app\controller\index.d.ts (2ms)
[egg-ts-helper] create typings\app\model\index.d.ts (2ms)
[egg-ts-helper] create typings\config\index.d.ts (13ms)
[egg-ts-helper] create typings\config\plugin.d.ts (1ms)
[egg-ts-helper] create typings\app\service\index.d.ts (4ms)
[egg-ts-helper] create typings\app\index.d.ts (0ms)
test/app/controller/system.user.loginByCode.test.js
- should login successfully when code is valid
1) should fail when code is missing
2) should fail when code does not exist
3) should fail when code format is valid but not matched
0 passing (27ms)
1 pending
3 failing
1) test/app/controller/system.user.loginByCode.test.js
should fail when code is missing:
TypeError: fetch failed
Caused by: Error: connect ECONNREFUSED 127.0.0.1:6060
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1645:16)
2) test/app/controller/system.user.loginByCode.test.js
should fail when code does not exist:
TypeError: fetch failed
Caused by: Error: connect ECONNREFUSED 127.0.0.1:6060
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1645:16)
3) test/app/controller/system.user.loginByCode.test.js
should fail when code format is valid but not matched:
TypeError: fetch failed
Caused by: Error: connect ECONNREFUSED 127.0.0.1:6060
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1645:16)
[mochawesome] Report JSON saved to D:\wms\node_modules\.mochawesome-reports\mochawesome.json
[mochawesome] Report HTML saved to D:\wms\node_modules\.mochawesome-reports\mochawesome.html
ForkError: D:\wms\node_modules\mocha\bin\_mocha --exit --timeout=60000 --reporter=D:\wms\node_modules\mochawesome-with-mocha\src\mochawesome.js --reporter-options=reportDir=node_modules/.mochawesome-reports --require=D:\wms\node_modules\egg-mock\register.js worktrees/deploy-20260409155126/test/app/controller/system.user.loginByCode.test.js exit with code 1
at ChildProcess.<anonymous> (D:\wms\node_modules\egg-bin\dist\cmd\base.js:98:33)
at Object.onceWrapper (node:events:623:26)
at ChildProcess.emit (node:events:508:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12) {
code: 1
}
执行错误
- 错误对象: (无)