Cucumber Plugin - fail with program arguments
Hi!
I using Cucumber Plugin in my Maven test automation project. After I updated Intelij to 2019.2 (from 2018.1) I need to use the latest version of Cucumber Java plugin. And at this version "program arguments" automatically set up to:
--plugin
org.jetbrains.plugins.cucumber.java.run.CucumberJvm4SMFormatter
But my scenario can run only with this parameter:
--plugin
org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter
--monochrome
Probably it because CucumberJvm4SMFormatter related to 4th version of cucumber, but project unfortunately related to 1.2.5.
Set up template not helping, because of automatically add 4th version and I got at program arguments next:
--plugin
org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter
--monochrome
--plugin
org.jetbrains.plugins.cucumber.java.run.CucumberJvm4SMFormatter
Any chance to fix it somehow? Another option to set up program arguments? Directly say to intelij that need to use cucumber 1.2.5? Or any other solutions, where I don't need manually improve RUn/Debug settings for every scenario?
请先登录再写评论。
I am on 2019.2.4 (ultimate) and I get
Exception in thread "main" cucumber.runtime.CucumberException: Unrecognized plugin: org.jetbrains.plugins.cucumber.java.run.CucumberJvm4SMFormatter
Changing to org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter works.
I can't find a solution that doesn't involve changing the program arguments for each new run/debug configuration that gets created.
I can't see how to change the Cucumber java template to use the correct Formatter plugin for newly created run/debug configurations. Does anyone have a solution ?