在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):x2on/gradle-spoon-plugin开源软件地址(OpenSource Url):https://github.com/x2on/gradle-spoon-plugin开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):gradle-spoon-pluginA Gradle plugin for running Android instrumentation tests with Spoon. Basic usageAdd to your build.gradle buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'de.felixschulze.gradle:gradle-spoon-plugin:2.7.3'
}
}
apply plugin: 'de.felixschulze.gradle.spoon' Advanced usageAdd to your build.gradle spoon {
teamCityLog = true
debug = true
noAnimations = true
failOnFailure = false
testSizes = ['small', 'medium']
adbTimeout = 10*60
failIfNoDeviceConnected = false
excludedDevices = ['f5adb1a1', 'a6asb224']
}
Running specific test classes or test methods
Workaround for gradle-android-plugin 1.5.0 Multidex bug// Workaround for Multidex bug in gradle-android-plugin
// Replace Multidex dependency with some dummy dependency to avoid dex problems
// @see https://code.google.com/p/android/issues/detail?id=194609
project.getConfigurations().all { config ->
if (config.name.contains("AndroidTest")) {
config.resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.name == "multidex") {
details.useTarget("de.felixschulze.teamcity:teamcity-status-message-helper:1.2")
}
}
}
} ChangelogLicensegradle-spoon-plugin is available under the MIT license. See the LICENSE file for more info. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论