TestNG Factory Generator for Cucumber-JVM
Java
Latest commit 7804f7d Apr 13, 2013 @talios wMerge branch 'release/1.0.1'
* release/1.0.1:
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release cucumber-testng-factory-1.0.1
  Added description/url
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release cucumber-testng-factory-1.0.1
  Updated groupId for my oss.sonatype.org creds
  Added release pom details
  Reformatted and fixed up some merge issues.
  extract options from factorybuilder
  update cucumber version
  htmlformatter is no longer public
  update overriden methods
  update deprecated annotations
  fix issue #3 StringIndexOutOfBoundsException
  add gitignore

README.md

cucumber-testng-factory

The cucumber-testng-factory builder is an attempt to provide a launchpad for Cucumber-JVM from the TestNG based test framework.

Simply add a testng @Factory method to a class container cucumber annotations and build the factory:

public class TestFactory {

  @Factory
  public Object[] create() {
    return CucumberFactoryBuilder.create(new File("src"));
  }

  ...
}

See src/test/java/com/talios/TestFactory for an example.

Currently there are several limitations with the factory builder such as not supporting TestNG groups and dependencies, two things which were the driving reason for attempting to build the bridge.

Hopefully these will come in time.