-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from monosoul/fix/coverage
fix(test): coverage report
- Loading branch information
Showing
32 changed files
with
96 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,20 @@ | ||
import java.lang.Thread.sleep | ||
import java.time.Duration | ||
|
||
plugins { | ||
kotlin("jvm") | ||
jacoco | ||
id("pl.droidsonroids.jacoco.testkit") | ||
} | ||
|
||
tasks { | ||
val testTasks = tasks.withType<Test>() | ||
jacocoTestReport { | ||
executionData.setFrom( | ||
testTasks.map { it.extensions.getByType<JacocoTaskExtension>().destinationFile } | ||
) | ||
|
||
reports { | ||
xml.required.set(true) | ||
html.required.set(false) | ||
} | ||
dependsOn(withType<Test>()) | ||
} | ||
|
||
withType<Test> { | ||
// workaround for https://github.com/gradle/gradle/issues/16603 | ||
doLast { | ||
sleep( | ||
Duration.ofSeconds(2).toMillis() | ||
) | ||
} | ||
shouldRunAfter(testTasks) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.