Class StoryMerger
java.lang.Object
net.tangly.spec.bdd.engine.StoryMerger
Merges a set of JSON files produced through the execution of BDD JUnit tests. A feature is part of exactly one package. Therefore, the package name is the
key to the feature. A story is part of exactly one class. Therefore, the class name is the key for the story. A scenario is part of exactly one method.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StoryMerger
public StoryMerger()
-
-
Method Details
-
merge
Merges all BDD reports in the given directory into one file.- Parameters:
directory- directory containing all feature reports to be merged- Throws:
IOException- if access to the file system encountered a problem
-
write
Writes the features to the provided file.- Parameters:
path- path of the file where the features are archived
-