|
|
@ -35,6 +35,20 @@ class DesktopApplicationTest : GradlePluginTestBase() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
fun testRunMpp() = with(testProject(TestProjects.mpp)) { |
|
|
|
|
|
|
|
val logLine = "Kotlin MPP app is running!" |
|
|
|
|
|
|
|
gradle("run").build().checks { check -> |
|
|
|
|
|
|
|
check.taskOutcome(":run", TaskOutcome.SUCCESS) |
|
|
|
|
|
|
|
check.logContains(logLine) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
gradle("runDistributable").build().checks { check -> |
|
|
|
|
|
|
|
check.taskOutcome(":createDistributable", TaskOutcome.SUCCESS) |
|
|
|
|
|
|
|
check.taskOutcome(":runDistributable", TaskOutcome.SUCCESS) |
|
|
|
|
|
|
|
check.logContains(logLine) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
fun kotlinDsl(): Unit = with(testProject(TestProjects.jvmKotlinDsl)) { |
|
|
|
fun kotlinDsl(): Unit = with(testProject(TestProjects.jvmKotlinDsl)) { |
|
|
|
gradle(":package", "--dry-run").build() |
|
|
|
gradle(":package", "--dry-run").build() |
|
|
|