Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functional test on Gradle nested classes validation error #449

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
shanshin marked this conversation as resolved.
Show resolved Hide resolved
@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")
}
}
}