问题
IntelliJ has a plugin for Cucumber.js. This suppose to enable running and debugging inside the IDE. The run configuration for cucumber.js works, but the debug mode is deactivated (Debug button can not be clicked). Does anybody else has the same problem and managed to solve it? Debugging is very essential to me. Thanks!
回答1:
Instead of using the cucumber.js plugin, I used the run/debug configuration of node.js.
I just set the run config of the node.js plugin like that -> JavaScript file: node_modules/.bin/cucumber.js (any path to the cucumber.js file)
回答2:
I have added support it via cucumberjs grunt plugin. Hope thats what your are looking for. Here, https://github.com/mavdi/grunt-cucumberjs#optionsdebugger
来源:https://stackoverflow.com/questions/30640253/cucumber-js-debugging-in-intellij