@mSolo
2015-04-13T23:07:57.000000Z
字数 1307
阅读 1585
Jekins
Android
CI
持续集成
TDD
| build.gradle
| src
| |- main
| |- java/com/msolo/stockeye/calendarstock/UtilCalTime.java
| |- test
| |- java/com/msolo/stockeye/calendarstock/UtilCalTimeTest.java
apply plugin: 'java'
version = 0.1
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.11'
}
task libJavadocs(type: Javadoc) {
source = sourceSets.main.allJava
}
项目名称:android_stockeye_cal_lib
// 增加的部分
apply plugin: "jacoco"
jacocoTestReport {
group = "reporting"
description = "Generate Jacoco coverage reports after running tests."
reports {
xml.enabled true
html.enabled true
csv.enabled false
}
//classDirectories = fileTree(dir: 'build/classes/main', include: 'com/thc/**')
//sourceDirectories = fileTree(dir: 'scr/java', include: 'com/thc/**')
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
}