Class StoryMerger

java.lang.Object
net.tangly.spec.bdd.engine.StoryMerger

public class StoryMerger extends Object
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 Details

    • StoryMerger

      public StoryMerger()
  • Method Details

    • merge

      public void merge(@NotNull @NotNull Path directory) throws IOException
      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

      public void write(Path path)
      Writes the features to the provided file.
      Parameters:
      path - path of the file where the features are archived