IDE Integration

JBehave 2 is an embeddable library that builds on the foundation of JUnit 4. JBehave 2 scenarios are annotated with the JUnit @Test annotation.

Therefore any IDE that supports JUnit integration will automatically support JBehave 2.

NOTE: Some versions of Eclipse need to be aware of the JBehave source to enable the JUnit plugin for scenarios, as they can’t spot the @Test annotation in a class jar. The link to the core sources is available from the download page.

Alternatively, one can override the runScenario method and annotate it:

public class MyScenario extends JUnitScenario {
 
  @Test
  public void runScenario(){
    super.runScenario();
  }
 
}