Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ordered report tasks before verification
Resolves #209
- Loading branch information
Showing
6 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
src/functionalTest/kotlin/kotlinx/kover/test/functional/cases/TasksOrderingTests.kt
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package kotlinx.kover.test.functional.cases | ||
|
||
import kotlinx.kover.test.functional.cases.utils.* | ||
import kotlinx.kover.test.functional.core.* | ||
import kotlinx.kover.test.functional.core.BaseGradleScriptTest | ||
import kotlin.test.* | ||
|
||
internal class TasksOrderingTests : BaseGradleScriptTest() { | ||
@Test | ||
fun testProjectTasks() { | ||
val build = diverseBuild() | ||
build.addKoverRootProject { | ||
sourcesFrom("simple") | ||
kover { | ||
verify { | ||
rule { | ||
bound { | ||
minValue = 100 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
val runner = build.prepare() | ||
runner.runWithError("koverVerify", "koverReport") { | ||
// reports should be generated even if verification failed with an error | ||
checkDefaultReports() | ||
} | ||
} | ||
|
||
@Test | ||
fun testMergedTasks() { | ||
val build = diverseBuild() | ||
build.addKoverRootProject { | ||
sourcesFrom("simple") | ||
koverMerged { | ||
enable() | ||
verify { | ||
rule { | ||
bound { | ||
minValue = 100 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
val runner = build.prepare() | ||
runner.runWithError("koverMergedVerify", "koverMergedReport") { | ||
// reports should be generated even if verification failed with an error | ||
checkDefaultMergedReports() | ||
} | ||
} | ||
|
||
} |
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
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