在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):manupsunny/gauge-gradle-plugin开源软件地址(OpenSource Url):https://github.com/manupsunny/gauge-gradle-plugin开源编程语言(OpenSource Language):Java 98.8%开源软件介绍(OpenSource Introduction):Gauge Gradle Plugin
Use the gauge-gradle-plugin to execute specifications in your Gauge java project and manage dependencies using Gradle. Using plugin in projectApply plugin gauge and add classpath to your build.gradle. Here is a sample gradle file, apply plugin: 'java'
apply plugin: 'gauge'
apply plugin: 'application'
group = "my-gauge-tests"
version = "1.1.0"
description = "My Gauge Tests"
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.thoughtworks.gauge.gradle:gauge-gradle-plugin:+'
}
}
repositories {
mavenCentral()
}
dependencies {
'com.thoughtworks.gauge:gauge-java:+',
}
// configure gauge task here (optional)
gauge {
specsDir = 'specs'
inParallel = true
nodes = 2
env = 'dev'
tags = 'tag1'
additionalFlags = '--verbose'
gaugeRoot = '/opt/gauge'
}
Older Versions of the Plugin are also available at Gradle Plugin Portal. For an uptodate version of the Plugin please use Executing specs using gradleTo execute gauge specs,
Execute list of specs
Execute specs in parallel
Execute specs by tags
Specifying execution environment
Note : Pass specsDir parameter as the last one. All additional PropertiesThe following plugin properties can be additionally set:
See gauge's command line interface for list of all flags that be used with -PadditionalFlags option. Adding/configuring custom Gauge tasksIt is possible to define new custom Gauge tasks by extending task gaugeDev(type: GaugeTask) {
doFirst {
gauge {
specsDir = 'specs'
inParallel = true
nodes = 2
env = 'dev'
additionalFlags = '--verbose'
}
}
}
task gaugeTest(type: GaugeTask) {
doFirst {
gauge {
specsDir = 'specs'
inParallel = true
nodes = 4
env = 'test'
additionalFlags = '--verbose'
}
}
} LicenseGauge Gradle Plugin is released under GNU Public License Version 3.0 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论