Class ScenarioGrouping

java.lang.Object
com.arc_e_tect.gradle.gherkin.parser.ScenarioGrouping

public final class ScenarioGrouping extends Object
Groups ScenarioInfo instances by the Feature they belong to.
  • Method Details

    • byFeatureTitle

      public static Map<String,List<ScenarioInfo>> byFeatureTitle(List<ScenarioInfo> scenarios)
      Groups scenarios by ScenarioInfo.featureTitle(), preserving the order in which each feature title was first encountered.
      Parameters:
      scenarios - the scenarios to group
      Returns:
      an ordered map from feature title to the scenarios belonging to that feature, in document order