title: Is there a way to run regular jUnit tests with my Cucumber test runner?
body: <p>I have a Java project set up with Maven, which I am testing with both Cucumber and jUnit. </p>
  
  <p>Maybe I am missing something, but is there a way to set up my Cucumber test runner to automatically run jUnit tests along with my cucumber features? It would be great not to have to run two separate test suites, and to automatically test everything with <code>mvn test</code>.</p>
  
  <p>At the moment, when I specify <code>@RunWith(Cucumber.class)</code>, it just looks for <code>.feature</code> files and ignores all other tests.</p>
  
  <p>Here is my test file structure: </p>
  
  <pre class="lang-html prettyprint-override"><code>    └── test
          ├── java
          │   ├── TestRunner.java
          │   └── com
          │       └── myname
          │           └── server
          │               ├── GlobalHooks.java
          │               ├── HTTPRequestsSteps.java
          │               └── unitTests
          │                   ├── RequestHandlerTests.java
          │                   └── ServerTests.java
          └── resources
              └── cucumber
                  ├── ... cucumber features here
  </code></pre>
  
  
  
  <p>And my test runner, which currently just looks for <code>.feature</code> files.</p>
  
  <pre><code>import cucumber.api.CucumberOptions;
  import cucumber.api.junit.Cucumber;
  import org.junit.Test;
  import org.junit.runner.RunWith;
  
  import static org.junit.Assert.assertEquals;
  
  @RunWith(Cucumber.class)
  @CucumberOptions(plugin={"pretty"}, glue="com.rnelson.server", features="src/test/resources")
  
  public class TestRunner {
  }
  </code></pre>
  
  <p>I have been searching to no avail, so any help would be greatly appreciated. Thanks!</p>