Class GaugeCommand

java.lang.Object
org.gauge.gradle.GaugeCommand

public class GaugeCommand extends Object
Represents a Gauge command and provides methods to construct command-line arguments for Gauge execution.
  • Constructor Details

    • GaugeCommand

      public GaugeCommand(GaugeExtension extension, org.gradle.api.Project project)
      Constructs a GaugeCommand instance.
      Parameters:
      extension - the GaugeExtension instance
      project - the Gradle project
  • Method Details

    • getExecutable

      public String getExecutable()
      Returns the Gauge executable path.
      Returns:
      the path to the Gauge executable
    • getProjectDir

      public List<String> getProjectDir()
      Returns the project directory argument for Gauge.
      Returns:
      a list containing the project directory flag and value
    • getEnvironment

      public List<String> getEnvironment()
      Returns the environment argument for Gauge.
      Returns:
      a list containing the environment flag and value
    • isNotFailedOrRepeatFlagProvided

      public boolean isNotFailedOrRepeatFlagProvided()
      Returns true if neither --failed nor --repeat flags are provided.
      Returns:
      true if neither flag is present, false otherwise
    • getFlags

      public List<Object> getFlags()
      Returns the list of flags for Gauge execution.
      Returns:
      a list of flags
    • getSpecsDir

      public List<String> getSpecsDir()
      Returns the specs directory argument for Gauge.
      Returns:
      a list containing the specs directory flag and value
    • getTags

      public List<String> getTags()
      Returns the tags argument for Gauge.
      Returns:
      a list containing the tags flag and value, or an empty list if not set