Class RootDirectory

java.lang.Object
net.thucydides.model.requirements.RootDirectory

public class RootDirectory extends Object
Find the root directory of the requirements hierarchy when using Cucumber or JBehave. This is normally src/test/resources/features or src/test/resources/stories. For multi-module projects, it can be a directory with this name in one of the modules. There should only be one requirements directory in a multi-module project. The easiest approach is to have a dedicated module for the acceptance tests.

You can hard-code this directory using serenity.requirements.dir. Milage may vary for multi-module projects. If you need to override the root directory (e.g. to use src/test/resources/myFeatures), a better way is to set the serenity.features.directory (for Cucumber) or serenity.stories.directory (for JBehave) property to the simple name of the directory (e.g. serenity.features.directory=myFeatures).