[Gradle, JS] Add test on compilation with dukat binaries
^KT-42339 fixed
This commit is contained in:
+30
@@ -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(
|
private fun projectName(
|
||||||
dslType: DslType,
|
dslType: DslType,
|
||||||
dependenciesLocation: DependenciesLocation
|
dependenciesLocation: DependenciesLocation
|
||||||
|
|||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
fun main() {
|
||||||
|
decamelize("helloWorld")
|
||||||
|
}
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
fun main() {
|
||||||
|
decamelize("helloWorld")
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user