Skip to content

Latest commit

 

History

History
96 lines (78 loc) · 3.28 KB

README.md

File metadata and controls

96 lines (78 loc) · 3.28 KB

gauge-maven-plugin Build Status

Maven plugin to run gauge specs.

Prerequisites

Add to project

Add the below snippet to pom.xml

 <build>
      <plugins>
          <plugin>
              <groupId>com.thoughtworks.gauge.maven</groupId>
              <artifactId>gauge-maven-plugin</artifactId>
              <version>1.0.6</version>
          </plugin>
      </plugins>
  </build>

Executing specs

Run the below command to execute specs

mvn gauge:execute -DspecsDir=specs
```
###Execute specs In parallel
```
mvn gauge:execute -DspecsDir=specs -DinParallel=true
```
###Execute specs by [tags expression](http://getgauge.io/documentation/user/current/execution/tagged_execution.html)
```
mvn gauge:execute -DspecsDir=specs -Dtags="!in-progress"
```
### Specifying [execution environment](http://getgauge.io/documentation/user/current/managing_environments/README.html#executing-with-environment)
```
mvn gauge:execute -DspecsDir=specs -Denv="dev"
```

### As a part of maven test phase
Run gauge specs in project as a part of maven test phase by adding the below execution to yor pom.xml

com.thoughtworks.gauge.maven gauge-maven-plugin 1.0.6 test specs execute ```` ```mvn test``` command will also run gauge specs if the above mentioned execution is added to the projects pom.xml

All Properties

The following plugin properties can be additionally set:

Property name Usage Description
specsDir -DspecsDir=specs Gauge specs directory path. Required for executing specs
tags -Dtags="tag1 & tag2" Filter specs by specified tags expression
inParallel -DinParallel=true Execute specs in parallel
nodes -Dnodes=3 Number of parallel execution streams. Use with parallel
env -Denv=qa gauge env to run against
flags -Dflags="--verbose,--simple-Console" Add additional gauge flags to execution

Docs

License

GNU Public License version 3.0 Gauge maven plugin is released under GNU Public License version 3.0

Copyright

Copyright 2015 ThoughtWorks, Inc.