Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kover #80

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build koverXmlReport --stacktrace
arguments: build koverXmlReportDebug --stacktrace

- name: Upload Coverage report to CodeCov
uses: codecov/codecov-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build dokkaHtmlMultiModule koverHtmlReport
arguments: build dokkaHtmlMultiModule koverHtmlReportDebug

- name: Publish Library
run: |
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ buildscript {
mockkVersion = '1.13.10'
turbineVersion = '1.0.0'
spotlessVersion = '6.25.0'
koverVersion = "0.5.1"
koverVersion = "0.7.6"
startupVersion = "1.1.1"
}
}
Expand Down
26 changes: 12 additions & 14 deletions permission-flow/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ android {

testOptions {
unitTests.all {
if (name == "testDebugUnitTest") {
kover {
disabled = false
binaryReportFile.set(file("$buildDir/coverageReport/coverageReport.bin"))
}
}
}
}
namespace 'dev.shreyaspatil.permissionFlow'
Expand All @@ -64,14 +58,18 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
}

tasks.koverHtmlReport {
enabled = true
htmlReportDir.set(layout.buildDirectory.dir("coverageReport/html"))
}

tasks.koverXmlReport {
enabled = true
xmlReportFile.set(layout.buildDirectory.file("coverageReport/report.xml"))
koverReport {
androidReports("debug") {
xml {
reportFile = layout.buildDirectory.file("coverageReport/report.xml")
}
html {
reportDir = layout.buildDirectory.dir("coverageReport/html")
}
binary {
file = layout.buildDirectory.file("coverageReport/coverageReport.bin")
}
}
}

dokkaHtml.configure {
Expand Down
Loading