title: How to run one feature file as initialization (i.e. before all other feature files) in cucumber-jvm?
body: <p>I have a cucumber feature file 'A' that serves as setting up environment (data clean up and initialization). I want to have it executed before all other feature files can run.</p>
  
  <p>It's it kind of like @before hook as in <a href="http://zsoltfabok.com/blog/2012/09/cucumber-jvm-hooks/" rel="nofollow noreferrer">http://zsoltfabok.com/blog/2012/09/cucumber-jvm-hooks/</a>. However, that does not work because my feature files 'A' contains hundreds of cucumber steps and it is not as simple as:</p>
  
  <pre><code>@Before
  public void beforeScenario() {
      tomcat.start();
      tomcat.deploy("munger");
      browser = new FirefoxDriver();
  }
  </code></pre>
  
  <p>instead it's better to be able to run 'A' as a feature file as a whole.</p>
  
  <p>I've searched around but did not find a answer. I am so surprised that no one has this type of requirement before. </p>
  
  <p>The closest i found is 'background'. But that means i can have only one huge feature file with the content of 'A' as 'background' at the top, and rest of my test in the same file. I really do not want to do that.</p>
  
  <p>Any suggestions?</p>