• Home
  • Public Speaking
  • Travel

Gauge Framework

Defining Scenarios

Lets start with installation: Windows Installer
Lets implement our cases. High level snearios is stored in spec files.
In this case, we have 1 specification and 2 scenarios. Inner steps of scenarios are defined in concept files.
And the implementation of steps are performed in java files.

Execution over Maven

OK, curious about the results. First do it with maven. Perform any of:
mvn test
Run all specifications.
mvn gauge:execute -DspecsDir=specs
Run all specifications in the specified folder.
mvn gauge:execute -DspecsDir=specs/MySpec.spec
Run the specified specification.
mvn gauge:execute -DspecsDir=specs/MySpec.spec -Dtags="factorial"
Run the scenarios with specified tag in the specified specification.

Execution over Gradle

gradle gauge --rerun-tasks --info
Run all specifications.
gradle gauge -PspecsDir="specs" --rerun-tasks --info
Run all specifications in the specified folder.
gradle gauge -PspecsDir="specs/MySpec.spec" --rerun-tasks --info
Run the specified specification.
gradle gauge -PspecsDir="specs/MySpec.spec" -Ptags="factorial" --rerun-tasks --info
Run the scenarios with specified tag in the specified specification.