Running Scenarios

JBehave was designed to be embeddable in different development environments. The jbehave-core contains support for running scenarios as JUnit tests - which can be run either in your favourite IDE or in your command-line build that supports JUnit tests.

You can also run scenarios using the JBehave Ant or Maven extensions. Both support two way to lookup scenarios, by list of scenario classes or by Java path includes/excludes pattern. Below are examples on how to configure both extensions - using the trader example.

Running as Ant task

Remember that you need to include jbehave-ant to your runtime classpath.

Running as Maven Plugin