I have a Cucumber project that is configured to run with Junit by configuring my Junit test with
@RunWith(Cucumber.class)
@CucumberOptions(
extraGlue = "me.jkstrauss.stepdefs.common",
plugin = {"pretty", "html:target/cucumber/cucumber.html"}
)
I am trying to run the test in IntelliJ, and everything works. The problem is that when I view the results, I can only see the individual scenarios, but not the steps.
Of course, I can run the features directly as a Cucumber Java test in IntelliJ, and I get the expected output.
The problem is that I want to use some JUnit features, such as ClassRule, and those will not be run as part of the dedicated Cucumber Java test. Is there any way that I can get the itemized steps, and at the same time retain all the JUnit functionality?