Browse Source

Use correct test scenario for uber jar tests

pull/328/head 0.3.0-build143
Alexey Tsvetkov 4 years ago committed by Alexey Tsvetkov
parent
commit
f627c0cc55
  1. 6
      gradle-plugins/compose/src/test/kotlin/org/jetbrains/compose/DesktopApplicationTest.kt

6
gradle-plugins/compose/src/test/kotlin/org/jetbrains/compose/DesktopApplicationTest.kt

@ -65,19 +65,19 @@ class DesktopApplicationTest : GradlePluginTestBase() {
@Test
fun packageUberJarForCurrentOSJvm() = with(testProject(TestProjects.jvm)) {
testPackageNativeExecutables()
testPackageUberJarForCurrentOS()
}
@Test
fun packageUberJarForCurrentOSMpp() = with(testProject(TestProjects.mpp)) {
testPackageNativeExecutables()
testPackageUberJarForCurrentOS()
}
private fun TestProject.testPackageUberJarForCurrentOS() {
gradle(":packageUberJarForCurrentOS").build().let { result ->
assertEquals(TaskOutcome.SUCCESS, result.task(":packageUberJarForCurrentOS")?.outcome)
val resultJarFile = file("build/compose/jars/simple-${currentTarget.id}-1.0.jar")
val resultJarFile = file("build/compose/jars/TestPackage-${currentTarget.id}-1.0.jar")
resultJarFile.checkExists()
JarFile(resultJarFile).use { jar ->

Loading…
Cancel
Save