在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):vanniktech/gradle-android-junit-jacoco-plugin开源软件地址(OpenSource Url):https://github.com/vanniktech/gradle-android-junit-jacoco-plugin开源编程语言(OpenSource Language):Groovy 98.2%开源软件介绍(OpenSource Introduction):gradle-android-junit-jacoco-pluginGradle plugin that generates Jacoco reports from a Gradle Project. Android Application, Android Library, Kotlin and Java Plugins are supported by this plugin. When this plugin is applied it goes over every subproject and creates the corresponding Jacoco tasks. Android projectJVM Unit-Tests
Instrumented tests
android {
buildTypes {
debug {
testCoverageEnabled true
}
}
} Where For instance when having When having Java project
In addition the plugin generates
Works with the latest Gradle Android Tools version 3.4.0. This plugin is compiled using Java 7 hence you also need Java 7 in order to use it. Set uproot/build.gradle buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0"
}
}
apply plugin: "com.vanniktech.android.junit.jacoco" Information: This plugin is also available on Gradle plugins Snapshotbuildscript {
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
classpath "com.vanniktech:gradle-android-junit-jacoco-plugin:0.17.0-SNAPSHOT"
}
}
apply plugin: "com.vanniktech.android.junit.jacoco" ConfigurationThose are all available configurations - shown with default values and their types. More information can be found in the Java Documentation of the Extension. junitJacoco {
jacocoVersion = '0.8.3' // type String
ignoreProjects = [] // type String array
excludes // type String List
includeNoLocationClasses = false // type boolean
includeInstrumentationCoverageInMergedReport = false // type boolean
xml.enabled = true
csv.enabled = true
html.enabled = true
} LicenseCopyright (C) 2015 Vanniktech - Niklas Baudy Licensed under the Apache License, Version 2.0 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论