【问题标题】:Cypress : Error: spawn docker ENOENT after:run event - cucumber-json-formatterCypress : Error: spawn docker ENOENT after:run event - cucumber-json-formatter
【发布时间】:2022-12-27 20:03:28
【问题描述】:

When I run cypress in docker, I am not able to produce cucumber-html-report. I get thos error: {

    cypress   | An error was thrown in your plugins file while executing the handler for the after:run event.
cypress   |
cypress   | The error we received was:
cypress   |
cypress   | Error: spawn docker ENOENT
cypress   |     at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
cypress   |     at onErrorNT (node:internal/child_process:478:16)
cypress   |     at processTicksAndRejections (node:internal/process/task_queues:83:21)
}

I am using following .cypress-cucumber-preprocessorrc configuration

{
  "json": {
   "enabled": true,
    "output": "jsonlogs/log.json",
    "formatter": "docker",
    "args": ["run", "--rm", "-i", "cucumber-json-formatter"]
  },
  "messages": {
    "enabled": true,
    "output": "jsonlogs/messages.ndjson"
  },
  "html": {
    "enabled": true
  }....
}

ps:

  1. tests with cypress version 10
  2. multiple-cucumber-html-reporter
  3. I am using formatter for linux: cucumber-json-formatter-linux-amd64

    Thanks for Help :)

【问题讨论】:

    标签: docker cypress cypress-cucumber-preprocessor


    【解决方案1】:

    I have same issue on Travis pipeline

    【讨论】:

      猜你喜欢
      • 2022-11-04
      • 2013-07-05
      • 1970-01-01
      • 2021-06-30
      • 2019-06-27
      • 2023-01-24
      • 2015-11-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多