use of org.gradle.testing.jacoco.tasks.JacocoCoverageVerification in project gradle by gradle.
the class JacocoPlugin method addDefaultCoverageVerificationTask.
private void addDefaultCoverageVerificationTask(final Test task) {
final JacocoCoverageVerification coverageVerificationTask = project.getTasks().create("jacoco" + StringUtils.capitalize(task.getName()) + "CoverageVerification", JacocoCoverageVerification.class);
coverageVerificationTask.setGroup(LifecycleBasePlugin.VERIFICATION_GROUP);
coverageVerificationTask.setDescription(String.format("Verifies code coverage metrics based on specified rules for the %s task.", task.getName()));
coverageVerificationTask.executionData(task);
coverageVerificationTask.sourceSets(project.getConvention().getPlugin(JavaPluginConvention.class).getSourceSets().getByName("main"));
}
Aggregations