-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added functional test on Gradle nested classes validation error
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...nalTest/kotlin/kotlinx/kover/gradle/plugin/test/functional/cases/GradleValidationTests.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,16 @@ | ||
package kotlinx.kover.gradle.plugin.test.functional.cases | ||
|
||
import kotlinx.kover.gradle.plugin.test.functional.framework.checker.CheckerContext | ||
import kotlinx.kover.gradle.plugin.test.functional.framework.starter.TemplateTest | ||
import kotlin.test.assertFalse | ||
|
||
internal class GradleValidationTests { | ||
|
||
// test on validation error /~https://github.com/gradle/gradle/issues/26018 | ||
@TemplateTest("counters", [":koverXmlReport"]) | ||
fun CheckerContext.testNestedTypes() { | ||
assertFalse("Nested classes validation error. \n Build log:\n $output") { | ||
output.contains("Nested types are expected to either declare some annotated properties or some behaviour that requires capturing the type as input") | ||
} | ||
} | ||
} |