title: Using multiple classes in Cucumber glue option package
body: <p>I have a problem using the glue option when running Cucumber tests. Here's my test runner class:</p>
  
  <pre><code>@RunWith(Cucumber.class)
  @CucumberOptions(features="src/test/java/com/xcase/tests/cucumber/features/api/APITest.feature",glue={"com.xcase.tests.cucumber.stepdefinitions.api"})
  public class APIRunnerTest {
  
  }
  </code></pre>
  
  <p>I run the tests along these lines:</p>
  
  <p><code>mvn clean test -Dtest=APIRunnerTest</code></p>
  
  <p>If I put all of my step definitions in a single class in the glue package, <code>com.xcase.tests.cucumber.stepdefinitions.api.FirstSteps</code>, then my tests run fine.</p>
  
  <p>If I add an empty class to the <code>com.xcase.tests.cucumber.stepdefinitions.api</code> package, say <code>com.xcase.tests.cucumber.stepdefinitions.api.SecondSteps</code>,then my tests run fine. However, if I modify <code>SecondSteps</code> to extend <code>FirstSteps</code>, then my tests stop running completely! Why is that?</p>
  
  <p>This is a problem for me because I'd like to put some shared step definitions and fields in a base step definition class and then have multiple classes that extend the base class. How should I do this?</p>