Hi! I have both unit and integration tests within ...
# community-support
j
Hi! I have both unit and integration tests within my project sharing some test fixtures. Test fixtures use
org.gradle.kotlin.dsl.support.normaliseLineSeparators
function which comes from the
gradle-kotlin-dsl.jar
When running unit tests, I see this Jar is present in dependencies, but it’s absent for integration tests created with test suites. How can I make sure that Gradle Kotlin DSL are added everywhere?
1
v
Maybe you should not use that internal API 🙂
j
But. 🥲
a
Try this:
Copy code
dependencies {
    testFixturesApi(gradleKotlinDsl())
}
or add
gradleKotlinDsl()
to all test suite dependencies
some of the Gradle Kotlin DSL utils are bugged in IntelliJ test sources though https://youtrack.jetbrains.com/issue/KTIJ-14684