pri*_*haw 1 cucumber visual-studio protractor
转到定义功能在 vs-code 上不起作用。
\n\n我已经安装了黄瓜(小黄瓜)完整支持插件。
\n\n复制步骤:右键单击功能文件上的步骤,然后选择转到定义。
\n\n特征文件
\n\nGherkin code : When user access the Application\nRun Code Online (Sandbox Code Playgroud)\n\n步骤定义文件
\n\nWhen(\'user access the Application\',\xc2\xa0async\xc2\xa0function\xc2\xa0() {\n\n await\xc2\xa0PageObject.open();\n\n}); \nRun Code Online (Sandbox Code Playgroud)\n\n预期:它应该导航到步骤定义文件。
\n\n项目文件夹结构
\n\n\n\n\n.vscode 在项目文件夹下(不要在任何子文件夹中)settings.json下.vscode.vscode,使设置生效。以下是我本地的示例项目,“转到定义”效果很好。
{
"cucumberautocomplete.steps": [
"steps/*js"
],
"cucumberautocomplete.syncfeatures": "features/*feature",
"cucumberautocomplete.strictGherkinCompletion": true
}
Run Code Online (Sandbox Code Playgroud)
(记住更改您的步骤定义和功能文件路径)
| 归档时间: |
|
| 查看次数: |
9777 次 |
| 最近记录: |