Gradle Jacoco插件exclude配置
2015-11-03 21:55
225 查看
官方的exclude配置并不能起作用,参考:
https://issues.gradle.org/browse/GRADLE-2955
和
http://stackoverflow.com/questions/29887805/filter-jacoco-coverage-reports-with-gradle
apply plugin: 'java'
apply plugin: 'jacoco'
jacocoTestReport {
reports {
xml {
enabled true // coveralls plugin depends on xml format report
}
html {
enabled true
}
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it,
exclude: ['codeeval/**',
'crackingthecode/part3knowledgebased/**',
'**/Chapter7ObjectOrientedDesign**',
'**/Chapter11Testing**',
'**/Chapter12SystemDesignAndMemoryLimits**',
'projecteuler/**'])
})
}
}
https://issues.gradle.org/browse/GRADLE-2955
和
http://stackoverflow.com/questions/29887805/filter-jacoco-coverage-reports-with-gradle
apply plugin: 'java'
apply plugin: 'jacoco'
jacocoTestReport {
reports {
xml {
enabled true // coveralls plugin depends on xml format report
}
html {
enabled true
}
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it,
exclude: ['codeeval/**',
'crackingthecode/part3knowledgebased/**',
'**/Chapter7ObjectOrientedDesign**',
'**/Chapter11Testing**',
'**/Chapter12SystemDesignAndMemoryLimits**',
'projecteuler/**'])
})
}
}
相关文章推荐
- 【CUDA并行程序设计系列(3)】CUDA线程模型
- 小项目只是汇总
- 时间戳
- c++11特性之initializer_list
- JAVA_SE基础——48.多态
- Application,Session和Cookies的区别
- c++11特性之initializer_list
- python正则表达式
- 黑马程序员——高薪技术——反射
- 机器学习中的数学(5)-强大的矩阵奇异值分解(SVD)及其应用
- 按钮与a标签的禁用与启用总结
- NOI题库
- 安装centos7 windows7 (32位) 双系统以及grub2引导windows 7
- socket(二)
- java中String总结,引用传递
- NOIP2013 货车运输
- 搜索引擎数据源爬取——python scrapy
- NOI题库
- C# ArcEngine TOCControl上实现右键
- poj PIGS 1149 (最大流&&经典建图) 好题