title: How to integrate Cucumber with TestNG example?
body: <p>I am trying to use <a href="https://github.com/lionhearth/cucumber-testng" rel="nofollow">cucumber-testng</a>, it looks simple. So far I have installed following packages using gradle:</p>
  
  <p><code>compile 'info.cukes:cucumber-testng:1.2.2'</code> (cucumber with testng) <br/>
  <code>compile 'info.cukes:cucumber-java:1.2.4'</code> (java now recognizes cucumber annotations) <br/>
  <code>cucumberRuntime 'info.cukes:cucumber-groovy:1.1.6'</code> (to run cucumber-testng tests)</p>
  
  <p>How do I run these tests? I see errors when running this via the command <code>gradle cucumber</code>.</p>
  
  <p>My test outline in java is as follows: <br/>
  <em>src/test/resources/features/Structured.feature</em>
  <em>src/test/java/test/httpapi/structure/StructuredFeatureRunner.java</em></p>
  
  <pre><code>package test.httpapi.structure;  
  
  import cucumber.api.CucumberOptions;
  import cucumber.api.testng.AbstractTestNGCucumberTests;
  
  
  @CucumberOptions(features = "src/test/resources/features/Structured.feature",
                glue = "test.httpapi.structure",
                format = {"pretty"})
  public class StructuredFeatureRunner extends AbstractTestNGCucumberTests {
  
  }
  </code></pre>