[Gradle, JS] Add test on compilation with dukat binaries

^KT-42339 fixed
This commit is contained in:
Ilya Goncharov
2020-09-30 16:15:45 +03:00
parent c1fe8defd2
commit b37414ae0b
3 changed files with 36 additions and 0 deletions
@@ -277,6 +277,36 @@ class DukatIntegrationIT : BaseGradleIT() {
}
}
@Test
fun testCompilationLegacyBinariesGroovyDsl() {
testCompilationLegacyBinaries(
DslType.GROOVY
)
}
@Test
fun testCompilationLegacyBinariesKotlinDsl() {
testCompilationLegacyBinaries(
DslType.KOTLIN
)
}
private fun testCompilationLegacyBinaries(
dslType: DslType
) {
val projectName = projectName(dslType, DependenciesLocation.EXTENSION)
val project = Project(
projectName = projectName,
directoryPrefix = "dukat-integration"
)
project.setupWorkingDir()
project.gradleBuildScript().modify(::transformBuildScriptWithPluginsDsl)
project.build("compileKotlinJs") {
assertSuccessful()
}
}
private fun projectName(
dslType: DslType,
dependenciesLocation: DependenciesLocation