WMS_MAIN/test_reports/fail/20260410-130419-main-skip-app_controller_system.user.loginByCode.test.js.md
liufumingren e73a311076 ok
2026-04-11 17:09:06 +08:00

2.7 KiB

测试结果

  • 状态: SKIP
  • 分类: 主区
  • 文件: app/controller/system.user.loginByCode.test.js
  • 源: main
  • 测试类型: 自动化文件级执行
  • 测试账号: liufumingren
  • 测试仓 ID: 100000
  • 测试货主 ID: 1000000
  • 开始时间: 2026-04-10T13:05:04.598Z
  • 结束时间: 2026-04-10T13:05:06.057Z
  • 耗时(秒): 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 (3ms)
[egg-ts-helper] create typings\app\index.d.ts (1ms)


  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 (22ms)
  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 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
}

执行错误

  • 错误对象: (无)