在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):samueltbrown/gradle-cucumber-plugin开源软件地址(OpenSource Url):https://github.com/samueltbrown/gradle-cucumber-plugin开源编程语言(OpenSource Language):Gherkin 39.3%开源软件介绍(OpenSource Introduction):Gradle Cucumber Plugin![Cucumber Logo] (https://cucumber.io/images/cucumber-logo.svg) The gradle cucumber plugin provides the ability to run cucumber acceptance tests directly from a gradle build. The plugin utilizes the cucumber cli provided by the cucumber-jvm project and should support any of the languages utilized in cucumber-jvm. (Currently only tested with Java, Groovy, and JRuby more coming soon!) Contributors
Using the plugin in your gradle build scriptFrom v0.7 onTo use in Gradle 2.1 and later… plugins {
id "com.github.samueltbrown.cucumber" version "0.9"
} To use in earlier versions of Gradle… buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.github.samueltbrown:gradle-cucumber-plugin:0.9"
}
}
apply plugin: "com.github.samueltbrown.cucumber" Before v0.7You can apply the plugin using the following
Older versions can be downloaded directly from GitHub like so;
Running the Tests onlyOnce the plugin has been applied, the project dependencies need to be updated with the cucumber-jvm jar file needed for your language. Below 'groovy' is the chosen language.
Building and Running the TestsIf you have a
Write your feature files under Available TasksCurrently the plugin only supports one task to run your cucumber tests:
Cucumber Task ConfigurationThe cucumber task has several configurable properties:
Example task configuration
PrerequisitesYou must use Cucumber version 1.1.6 or higher. Release Notesv0.9
v0.8
v0.7.2
v0.7.1
v0.7
v0.6
Coming Soon
ContributingAs you would expect, clone, push to GitHub and create a pull request for us to review and merge. Make sure you are using jdk 1.6 when running tests (jenv is our friend here). Pushing to Maven Central ./gradlew \
-Psigning.secretKeyRingFile=path/to/ring.gpg \
-Psigning.keyId=GPG_KEYID \
-Psigning.password=$GPG_PASS \
-PsonatypeUsername=$SONATYPE_USER \
-PsonatypePassword=$SONATYPE_PASS \
clean uploadArchives It is possible to save some or all of those properties to |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论