diff --git a/compiler-plugin-tests/build.gradle b/compiler-plugin-tests/build.gradle index 92ee3542..ff031b82 100644 --- a/compiler-plugin-tests/build.gradle +++ b/compiler-plugin-tests/build.gradle @@ -20,14 +20,21 @@ plugins { id 'java' id 'checkstyle' id 'com.github.spotbugs' + id 'jacoco' } description = 'Ballerina - MySQL Compiler Plugin Tests' +configurations { + jacocoRuntime +} + dependencies { checkstyle project(':checkstyle') checkstyle "com.puppycrawl.tools:checkstyle:${puppycrawlCheckstyleVersion}" + jacocoRuntime "org.jacoco:org.jacoco.agent:0.8.6:runtime" + implementation project(':mysql-compiler-plugin') testImplementation group: 'org.ballerinalang', name: 'ballerina-lang', version: "${ballerinaLangVersion}" @@ -60,6 +67,15 @@ test { } } } + finalizedBy jacocoTestReport +} + +jacocoTestReport { + dependsOn test + reports { + xml.enabled true + } + sourceSets project(':mysql-compiler-plugin').sourceSets.main } spotbugsTest {