Skip to content

Commit

Permalink
Enable code coverage for compiler plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
niveathika committed Mar 14, 2023
1 parent 6bc3867 commit 2f6b715
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions compiler-plugin-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -60,6 +67,15 @@ test {
}
}
}
finalizedBy jacocoTestReport
}

jacocoTestReport {
dependsOn test
reports {
xml.enabled true
}
sourceSets project(':mysql-compiler-plugin').sourceSets.main
}

spotbugsTest {
Expand Down

0 comments on commit 2f6b715

Please sign in to comment.