Package org.gauge.gradle
Class GaugeCommand
java.lang.Object
org.gauge.gradle.GaugeCommand
Represents a Gauge command and provides methods to construct command-line arguments for Gauge execution.
-
Constructor Summary
ConstructorsConstructorDescriptionGaugeCommand(GaugeExtension extension, org.gradle.api.Project project) Constructs a GaugeCommand instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the environment argument for Gauge.Returns the Gauge executable path.getFlags()Returns the list of flags for Gauge execution.Returns the project directory argument for Gauge.Returns the specs directory argument for Gauge.getTags()Returns the tags argument for Gauge.booleanReturns true if neither --failed nor --repeat flags are provided.
-
Constructor Details
-
GaugeCommand
Constructs a GaugeCommand instance.- Parameters:
extension- the GaugeExtension instanceproject- the Gradle project
-
-
Method Details
-
getExecutable
Returns the Gauge executable path.- Returns:
- the path to the Gauge executable
-
getProjectDir
Returns the project directory argument for Gauge.- Returns:
- a list containing the project directory flag and value
-
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
Returns the list of flags for Gauge execution.- Returns:
- a list of flags
-
getSpecsDir
Returns the specs directory argument for Gauge.- Returns:
- a list containing the specs directory flag and value
-
getTags
Returns the tags argument for Gauge.- Returns:
- a list containing the tags flag and value, or an empty list if not set
-