JaCoCo: exclude generated methods (using it with Lombok)

Also another way to exclude lombok generated classes since jacoco 0.8.0 and lombok 1.16.14. Luckily, beginning with version 0.8.0, Jacoco can detect, identify and ignore Lombok-generated code. The only thing you as the developer have to do is to create a file named lombok.config in your directory’s root and set the following flag: lombok.addLombokGeneratedAnnotation = … Read more

Filter JaCoCo coverage reports with Gradle

Thanks to, Yannick Welsch: After searching Google, reading the Gradle docs and going through older StackOverflow posts, I found this answer on the Official gradle forums! jacocoTestReport { afterEvaluate { classDirectories.setFrom(files(classDirectories.files.collect { fileTree(dir: it, exclude: ‘com/blah/**’) })) } } Source: https://issues.gradle.org/browse/GRADLE-2955 For older gradle versions < 5.x may need to use classDirectories = files(classDirectories.files.collect { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)