title: JUnit + Cucumber in IntelliJ - See Steps
body: <p>I have a Cucumber project that is configured to run with Junit by configuring my Junit test with</p>
  <pre><code>@RunWith(Cucumber.class)
  @CucumberOptions(
          extraGlue = &quot;me.jkstrauss.stepdefs.common&quot;,
          plugin = {&quot;pretty&quot;, &quot;html:target/cucumber/cucumber.html&quot;}
  )
  </code></pre>
  <p>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.</p>
  <p><a href="https://i.stack.imgur.com/huiB6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/huiB6.png" alt="IntelliJ w/ JUnit" /></a></p>
  <p>Of course, I can run the features directly as a Cucumber Java test in IntelliJ, and I get the expected output.</p>
  <p><a href="https://i.stack.imgur.com/lhNVS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lhNVS.png" alt="IntelliJ w/ Cucumber Java" /></a></p>
  <p>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?</p>