Enum Class IndexingMode

java.lang.Object
java.lang.Enum<IndexingMode>
com.arc_e_tect.gradle.gherkin.indexing.IndexingMode
All Implemented Interfaces:
Serializable, Comparable<IndexingMode>, Constable

public enum IndexingMode extends Enum<IndexingMode>
Controls whether Feature/Scenario titles are numbered directly in the source .feature files, as configured via the indexing DSL property.
  • Enum Constant Details

    • OFF

      public static final IndexingMode OFF
      Nothing is numbered. Any numbering left over from a previous run is removed.
    • FEATURE

      public static final IndexingMode FEATURE
      Every feature is numbered, in the order its feature file is processed in - see GherkinToAsciidocExtension#getIndexing() for exactly what that order is - e.g. Feature: 1 - User authentication.
    • SCENARIO

      public static final IndexingMode SCENARIO
      Every scenario is numbered, continuously across all feature files, in the same file processing order as FEATURE, e.g. Scenario: 1 - User logs in.
    • ALL

      public static final IndexingMode ALL
      Both features and scenarios are numbered. Scenarios are numbered per feature as <featureNumber>.<scenarioNumber>, e.g. Scenario: 1.1 - User logs in within Feature: 1 - User authentication.
  • Method Details

    • values

      public static IndexingMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IndexingMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null