jacoco-android-gradle-plugin icon indicating copy to clipboard operation
jacoco-android-gradle-plugin copied to clipboard

Using violationRules

Open mebibou opened this issue 7 years ago • 0 comments

I saw here that we can use validationRules with jacoco, but I've tried using it in the plugin without success:

android {
      jacocoAndroidUnitTestReport {
        violationRules {
            rule {
                limit {
                    minimum = 0.7
                }
            }
        }
    }
}

which gives the error

> Could not find method violationRules() for arguments [build_ei8l6elxe4xbtshycn6lr515j$_run_closure2$_closure12$_closure19@40e7e9ea] on object of type com.dicedmelon.gradle.jacoco.android.JacocoAndroidUnitTestReportExtension.

mebibou avatar Feb 12 '18 09:02 mebibou