Skip to content

Commit

Permalink
Added functional test on Gradle nested classes validation error
Browse files Browse the repository at this point in the history
Resolves #437

PR #449
  • Loading branch information
shanshin authored Sep 22, 2023
1 parent db3d54f commit 0c80c9e
Showing 1 changed file with 16 additions and 0 deletions.
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")
}
}
}

0 comments on commit 0c80c9e

Please sign in to comment.