【发布时间】:2021-09-06 10:34:31
【问题描述】:
在 VS Code 中,我已经安装了 Full Cucumber 支持插件,但是我无法从功能文件中跳转到步骤定义,点击功能命令。
我所有的功能文件都在以下子文件夹中:
cypress/integration/features/folderName1/feature1.feature
cypress/integration/features/folderName2/feature2.feature
等等
我所有的步骤定义文件都在:
cypress/support/step_definitions/folderName1/stepdef1.js
cypress/support/step_definitions/folderName2/stepdef2.js
等等
在 settings.json 我有这个:
"cucumberautocomplete.steps": [
"cypress/support/step_definitions/**/*.js"
],
"cucumberautocomplete.syncfeatures": "cypress/integration/features/**/*.feature",
"cucumberautocomplete.strictGherkinCompletion": true
但它不适用于功能文件中的任何步骤,例如:无法找到“当我单击链接时”的步骤
【问题讨论】:
标签: visual-studio-code cucumber cypress