Skip to content

Commit

Permalink
Merge pull request #20 from tamadalab/coveralls
Browse files Browse the repository at this point in the history
update source codes' locations
  • Loading branch information
ji-ua authored Dec 20, 2022
2 parents bbdc77e + 84ec591 commit 600232e
Show file tree
Hide file tree
Showing 24 changed files with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
id 'jacoco'
id 'jacoco-report-aggregation'
id 'test-report-aggregation'
id 'com.github.kt3k.coveralls' version '2.12.0'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'java'
Expand All @@ -38,8 +36,6 @@ dependencies {

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'

implementation 'org.eluder.coveralls:coveralls-maven-plugin:4.3.0'
}

shadowJar {
Expand All @@ -58,26 +54,20 @@ jar {
}
}

reporting {
reports {
testCodeCoverageReport(JacocoCoverageReport) {
testType = TestSuiteType.UNIT_TEST
}
}
jacoco {
toolVersion = '0.8.8'
}

jacocoTestReport {
dependsOn test
}

tasks.named('check') {
dependsOn tasks.named('testCodeCoverageReport', JacocoReport),
tasks.named('testAggregateTestReport', TestReport)
reports {
xml.required = false
html.required = false
}
}

coveralls {
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
jacocoReportPath = "${buildDir}/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
jacocoReportPath 'build/reports/jacoco/test/jacocoTestReport.xml'
}

task copyFile(type: Copy){
Expand All @@ -96,4 +86,4 @@ application {
mainClass = 'com.github.tamadalab.beacher.Example'
}

build.finalizedBy copyFile
build.finalizedBy copyFile

0 comments on commit 600232e

Please sign in to comment.