【发布时间】:2022-11-10 22:09:05
【问题描述】:
我已经将 Cypress 与 Cucumber 一起使用了一段时间,不知何故,它已停止将除“testRunStarted”和“testRunFinished”之外的任何内容记录到messages.ndjson。
这是我的 .cypress-cucumber-preprocessorrc.json:
{
"json": {
"enabled": true,
"output": "cypress/cucumber-json/cucumber-json.json",
"formatter": "cucumber-json-formatter"
},
"html": {
"enabled": true,
"output": "cypress/cucumber-html/cucumber-html.html"
},
"messages": {
"enabled": true,
"output": "cypress/messages.ndjson"
},
"nonGlobalStepDefinitions": true,
"stepDefinitions": [
"cypress/e2e/features/*.js",
"cypress/support/step_definitions/**/*.js"
]
}
我已经在调试的情况下运行了 cypress,并确认它正在选择正确的配置,并且它正在将开始和结束写入消息,但没有别的。
{"testRunStarted":{"timestamp":{"seconds":1664439067,"nanos":940000000}}}
{"testRunFinished":{"timestamp":{"seconds":1664439137,"nanos":63000000}}}
完全被这个难住了!
【问题讨论】:
标签: javascript node.js cucumber cypress cypress-cucumber-preprocessor