杰科公司Gradle-过滤选项 [英] JaCoCo & Gradle - Filtering Options

查看:133
本文介绍了杰科公司Gradle-过滤选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Gradle插件运行JaCoCo进行代码覆盖区报告。我想在build.gradle中指定一些过滤选项; https://github.com/jacoco/jacoco/wiki/FilteringOptions



我可以从Maven插件中看到这一点;例如 https://github.com/timezra/jacoco-scala-maven-plugin



来自Gradle doco



在作为<$的一部分运行时,如何为JaCoCo设置过滤选项c $ c> build.gradle 脚本吗?

解决方案

Gradle的JaCoCo插件没有?当前提供此类过滤选项。如果您认为应该这样做,请通过 http://forums.gradle.org 提出功能请求。。 p>

I'm currently using the Gradle plugin to run JaCoCo for code coverage repots. I wanted to specify in my build.gradle some filtering options; https://github.com/jacoco/jacoco/wiki/FilteringOptions

I can see that this is possible from the Maven plugin; e.g. https://github.com/timezra/jacoco-scala-maven-plugin

From the Gradle doco here there appears no clear way on how to do this.

How can I set filtering options for JaCoCo when running as part of a build.gradle script?

解决方案

Gradle's JaCoCo plugin doesn't currently provide such filtering options. If you think it should, please file a feature request over at http://forums.gradle.org.

这篇关于杰科公司Gradle-过滤选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆