Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Adding Cucumber to JUnit project

Łukasz Fechner edited this page Jul 21, 2016 · 11 revisions

If you want to add Cucumber to JUnit project, you need to do 3 things:

  • add this dependency to pom.xml
<dependency>
        <groupId>com.cognifide.qa.bb</groupId>
        <artifactId>bb-cumber</artifactId>
        <version>${bb.version}</version>
</dependency>
  • create CucumberInjectorSource
package com.cognifide.vmmtp;

import com.google.inject.Guice;
import com.google.inject.Injector;
import cucumber.api.guice.CucumberModules;
import cucumber.runtime.java.guice.InjectorSource;

public class CucumberInjectorSource implements InjectorSource {

	@Override
	public Injector getInjector() {
		return Guice.createInjector(CucumberModules.SCENARIO, new GuiceModule());
	}

}
  • create file cucumber-guice.properties under src/test/resources with path to CucumberInjectorSource
guice.injector-source=com.cognifide.vmmtp.CucumberInjectorSource

Getting started with Bobcat

  1. Getting started

AEM Related Features

  1. Authoring tutorial - Classic
  1. AEM Classic Authoring Advanced usage
  1. Authoring tutorial - Touch UI
Clone this wiki locally