JaCoCo gradle plugin exclude

后端 未结 1 1093
说谎
说谎 2021-01-15 01:23

I want to exclude some clasess from JaCoCo but the exclude doest seem to work.

For example i want to exclude all Java clasess that end with Dao (for example com.comp

相关标签:
1条回答
  • 2021-01-15 01:59

    Try something like this:

    excludes: ['**/Dao*.class']
    

    But as I understand, this will exclude the class from jacoco but the Report that Jacoco creates will show you "0% of coverage": Gradle issue: https://issues.gradle.org/browse/GRADLE-2955

    0 讨论(0)
提交回复
热议问题