在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):getgauge/gauge-gradle-plugin开源软件地址(OpenSource Url):https://github.com/getgauge/gauge-gradle-plugin开源编程语言(OpenSource Language):Java 97.3%开源软件介绍(OpenSource Introduction):Gauge Gradle PluginUse the gauge-gradle-plugin to execute specifications in your Gauge Java project and manage dependencies using Gradle.
InstallationOn a new projectYou can use this plugin on a new project via a Gauge project template:
Using the plugins DSLIf you have an existing project and you would like to add the plugin manually you can add it like the below plugins {
id 'java'
id 'org.gauge' version '1.8.0'
}
group = 'my-gauge-tests'
version = '1.0-SNAPSHOT'
description = "My Gauge Tests"
repositories {
mavenCentral()
}
dependencies {
implementation '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'
} Using legacy plugin 'apply' style
apply plugin: 'java'
apply plugin: 'gauge'
group = "my-gauge-tests"
version = "1.0-SNAPSHOT"
description = "My Gauge Tests"
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.org.gauge.gradle:gauge-gradle-plugin:1.8.0"
}
}
repositories {
mavenCentral()
}
dependencies {
implementation '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'
}
UsageRunning
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:
Adding/configuring custom Gauge tasksIt is possible to define new custom Gauge tasks specific for different environments. For example, 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'
}
}
} Running gauge task with source code of gradle pluginrun the gauge command with -
or add this property in
LicenseGauge is released under the Apache License, Version 2.0. See LICENSE for the full license text. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论