Skip to content

Commit 0c80c9e

Browse files
authored
Added functional test on Gradle nested classes validation error
Resolves #437 PR #449
1 parent db3d54f commit 0c80c9e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package kotlinx.kover.gradle.plugin.test.functional.cases
2+
3+
import kotlinx.kover.gradle.plugin.test.functional.framework.checker.CheckerContext
4+
import kotlinx.kover.gradle.plugin.test.functional.framework.starter.TemplateTest
5+
import kotlin.test.assertFalse
6+
7+
internal class GradleValidationTests {
8+
9+
// test on validation error https://github.com/gradle/gradle/issues/26018
10+
@TemplateTest("counters", [":koverXmlReport"])
11+
fun CheckerContext.testNestedTypes() {
12+
assertFalse("Nested classes validation error. \n Build log:\n $output") {
13+
output.contains("Nested types are expected to either declare some annotated properties or some behaviour that requires capturing the type as input")
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)