intellij-idea - .feature 文件中的 Intellij IDEA 语言注入
问题描述
我在.feature
文件中定义了一个 Cucumber 场景,我在其中测试了我开发的 API:
Given Something
When an API call is executed: GET '/v1/my/endpoint'
Then response status is OK
And response body is:
"""
{
"id": "id-1",
"message": "it worked"
}
"""
我希望能够突出显示 JSON 片段的语法。在 docs 1 2中找不到任何内容。语言注入注释也不起作用:
# language=javascript
And response body is:
"""
{
"id": "id-1",
"message": "it worked"
}
"""
所以问题是如何使语言注入在.feature
文件中工作?
解决方案
该功能暂不支持,欢迎投票。
推荐阅读
- c - 第二次 calloc 问题 - 在 C 上
- javascript - 快速排序问题 - 没有得到正确的结果
- docker - Cloud Build,maven 包,没有目标文件夹
- php - 尝试使用 With 时按数据透视表排序数据
- python - Python 用 selenium 切换浏览器焦点
- javascript - 是否可以测量溢出滚动的距离?
- azure-devops - 在 Azure DevOps 构建管道中发送电子邮件通知的最佳方式?不想使用“通知模块”
- python - Jupyter Notebook 导入问题
- c# - 单击带有在运行时创建的控件的按钮更改文本框的文本
- api - 如何清理我的 json 响应以使其更清洁