John Ferguson Smart - BDD in Action, Behavior-Driven Development for the Whole Software Lifecycle by 2014

John Ferguson Smart - BDD in Action, Behavior-Driven Development for the Whole Software Lifecycle by 2014

Author:2014
Format: epub


Figure 6.5. The default project directory structure for a JBehave project using Thucydides

The AcceptanceTestSuite class is a test runner that will execute all of the scenarios in the feature files. This is simply an empty class that extends the Thucydides-JUnitStories class:

public class AcceptanceTestSuite extends ThucydidesJUnitStories {}

Alternatively, some teams prefer to write a separate test runner for each story. This makes it easier to run individual stories from within the IDE and to run the stories in parallel. By default, Thucydides uses the name of the class to know what story to run. For example, the following class will run the earning_points_from_flights.story story:

public class EarningPointsFromFlights extends ThucydidesJUnitStory {}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.