在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):getgauge-contrib/gauge-maven-plugin开源软件地址(OpenSource Url):https://github.com/getgauge-contrib/gauge-maven-plugin开源编程语言(OpenSource Language):Java 96.4%开源软件介绍(OpenSource Introduction):gauge-maven-pluginThis plugin is used to integrate gauge with maven so that the specs can be run using maven. Maven plugin to run Gauge specs. Prerequisites
Create project from archetypeGauge-mvn-archetypes provide templates to create gauge-maven projects. Add to projectAdd the below snippet to pom.xml
Executing specsRun the below command to execute all specifications in
Run the below command to execute a single specification
Run the below command to execute specifications in
Run the below command to execute the failed scenarios
Run the below command to execute the repeat scenarios
Note
Execute specs In parallel
Execute specs by tags expression
Execute spec by scenario name
Specifying execution environment
As a part of maven test phaseRun gauge specs in project as a part of maven test phase by adding the below execution to yor pom.xml
Validate specs in projectRun the below command to execute all specifications in mvn gauge:validate -DspecsDir=specs Run the below command to validate and ignore stub implementation suggestions
As a part of maven test-compile phaseValidate gauge specs in project as a part of maven test-compile phase by adding the below execution to yor pom.xml
Running both goals (validate and execute) as part of mavenAdd the following execution to pom.xml to run both goals: <plugin>
<groupId>com.thoughtworks.gauge.maven</groupId>
<artifactId>gauge-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<id>validate</id>
<phase>test-compile</phase>
<goals>
<goal>validate</goal>
</goals>
</execution>
<execution>
<id>execute</id>
<phase>test</phase>
<goals><goal>execute</goal></goals>
<configuration>
<specsDir>specs</specsDir>
</configuration>
</execution>
</executions>
</plugin> All PropertiesThe following plugin properties can be additionally set:
Docs
LicenseGauge maven plugin is released under GNU Public License version 3.0 CopyrightCopyright 2015 ThoughtWorks, Inc. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论