Intellij idea 在Intellij中使用cucumber配置量角器

Intellij idea 在Intellij中使用cucumber配置量角器,intellij-idea,protractor,cucumber,cucumberjs,Intellij Idea,Protractor,Cucumber,Cucumberjs,我试图在Intellij中使用Cucumber配置量角器,但在使用当前配置运行测试时出错 我收到下面的错误信息 Testing started at 18:30 ... /usr/local/bin/node /Users/marianojover/IdeaProjects/AutomationTest_PRO/node_modules/cucumber/bin/cucumber /Users/marianojover/IdeaProjects/AutomationTest_

我试图在Intellij中使用Cucumber配置量角器,但在使用当前配置运行测试时出错

我收到下面的错误信息

       Testing started at 18:30 ...
   /usr/local/bin/node /Users/marianojover/IdeaProjects/AutomationTest_PRO/node_modules/cucumber/bin/cucumber /Users/marianojover/IdeaProjects/AutomationTest_PRO/features/test.feature --format "../../../Library/Application Support/IntelliJIdea2018.1/CucumberJavaScript/lib/cucumberjs_formatter_v2.js" --format-options "{\"cucumberLibPath\": \"/Users/marianojover/IdeaProjects/AutomationTest_PRO/node_modules/cucumber/lib\"}" --require /Users/marianojover/IdeaProjects/AutomationTest_PRO/features
   internal/modules/cjs/loader.js:583
   throw err;
   ^

   Error: Cannot find module '/Users/marianojover/IdeaProjects/AutomationTest_PRO/node_modules/cucumber/bin/cucumber'
   at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
   at Function.Module._load (internal/modules/cjs/loader.js:507:25)
   at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
   at startup (internal/bootstrap/node.js:236:19)
   at bootstrapNodeJSCore (internal/bootstrap/node.js:560:3)

   Process finished with exit code 1

错误不是给出我认为有用的信息来解决这个问题。 当前不支持运行Cucumber.js 4.x,请按照更新操作请确保已将Cucumber添加到项目目录中的node_modules文件夹中。我希望通过查看跑步配置中的路径,它就在那里

您还可以在运行配置中将cucumber cli路径添加到cucumber.js参数中。要添加的路径是./node\u modules/.bin/js,应该根据目录结构进行修改。请看

如果上述方法不起作用,则还可以使用node.js runner运行量角器测试。只需添加一个新的运行配置并添加node.js,然后在运行程序的“配置”选项卡中添加参数,下面给出了一些参数-

工作目录->这将是项目的路径

Javascript文件->节点\u模块\dragrator\builded\cli.js


应用程序参数->-specs=

它所抱怨的模块是否在该目录中?如果没有,为什么要它查看该目录?应该在哪里找到?谢谢你的回复。你能检查一下链接吗,因为它返回了一个404。消息是404:不,找不到!尽管我们尽了最大努力,但这里没有任何内容可以显示您请求的URL。很可能URL无效,或者您没有访问该页面的权限。显然这与许可证有关。。。这确实是一个权限问题。我已更改车票的可见性,请重试:没有运气。同样的消息请再试一次-我已经让每个人都看到了