public class RootDirectory extends Object
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).
| Modifier and Type | Method and Description |
|---|---|
static RootDirectory |
definedIn(EnvironmentVariables environmentVariables) |
String |
featureDirectoryName() |
Optional<Path> |
featuresOrStoriesRootDirectory() |
Set<String> |
getRootDirectoryPaths()
Find the root directory in the classpath or on the file system from which the requirements will be read.
|
Set<String> |
requirementsDirectoryNames() |
String |
storyDirectoryName() |
public static RootDirectory definedIn(EnvironmentVariables environmentVariables)
public Set<String> getRootDirectoryPaths()
public String featureDirectoryName()
public String storyDirectoryName()
Copyright © 2022. All rights reserved.