java.lang.Object
net.thucydides.model.requirements.RootDirectory
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).
-
Method Summary
Modifier and TypeMethodDescriptionstatic RootDirectorydefinedIn(EnvironmentVariables environmentVariables) Find the root directory in the classpath or on the file system from which the requirements will be read.
-
Method Details
-
requirementsDirectoryNames
-
definedIn
-
getRootDirectoryPaths
Find the root directory in the classpath or on the file system from which the requirements will be read. -
featureDirectoryName
-
storyDirectoryName
-
featuresOrStoriesRootDirectory
-