在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):unbroken-dome/gradle-testsets-plugin开源软件地址(OpenSource Url):https://github.com/unbroken-dome/gradle-testsets-plugin开源编程语言(OpenSource Language):Kotlin 100.0%开源软件介绍(OpenSource Introduction):Gradle TestSets pluginA plugin for the Gradle build system that allows specifying test sets (like integration or acceptance tests). A test set is a logical grouping of a source set and related dependency configurations, tasks and artifacts. The plugin requires Gradle 5.1 or higher. QuickstartOne of the most common use cases for this plugin is to separate integration tests from unit tests within the same project. Using a separate test set (instead of other mechanisms like JUnit tags) allows for a clean separation of the code, as well as a different set of library dependencies for both types of tests. Add the following to your build.gradle file: // The plugins block needs to be at the top of your build script
plugins {
id 'org.unbroken-dome.test-sets' version '4.0.0'
}
testSets {
integrationTest
} Place your integration test code in To execute only the integration tests, run the ./gradlew integrationTest You can add dependencies that are only used in integration tests to the dependencies {
// Wiremock will only be available in integration tests, but not in unit tests
integrationTestImplementation 'com.github.tomakehurst:wiremock:2.19.0'
} UsageApplying the pluginTo use the TestSets plugin, include the following in your Gradle script: build.gradle
plugins {
id 'org.unbroken-dome.test-sets' version '4.0.0'
} PrerequisitesThe TestSets plugin is designed to work in conjunction with the You will need to run Gradle 5.1 or higher with a JDK 8 or higher to use the plugin. 全部评论
专题导读
上一篇:gradle/guides: The Gradle Guides at https://guides.gradle.org.发布时间:2022-06-18下一篇:dpa99c/cordova-android-support-gradle-release: Cordova/Phonegap plugin to align ...发布时间:2022-06-18热门推荐
热门话题
阅读排行榜
|
请发表评论