[gradle-plugin][tests] Fix tests
This commit is contained in:
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.gradle.plugin.test
|
|||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.rules.TemporaryFolder
|
import org.junit.rules.TemporaryFolder
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
import java.net.URI
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|
||||||
open class CompatibilityTests {
|
open class CompatibilityTests {
|
||||||
@@ -33,7 +34,9 @@ open class CompatibilityTests {
|
|||||||
val project = KonanProject.createEmpty(projectDirectory)
|
val project = KonanProject.createEmpty(projectDirectory)
|
||||||
val result = project
|
val result = project
|
||||||
.createRunner()
|
.createRunner()
|
||||||
.withGradleVersion("4.5")
|
.withGradleDistribution(URI.create(
|
||||||
|
"https://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-4.5-bin.zip"
|
||||||
|
))
|
||||||
.withArguments("tasks")
|
.withArguments("tasks")
|
||||||
.buildAndFail()
|
.buildAndFail()
|
||||||
println(result.output)
|
println(result.output)
|
||||||
|
|||||||
@@ -468,7 +468,7 @@ class ExperimentalPluginTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `Framework name should not contain "-" symbols`() = withProject("test-framework-project") {
|
fun `Framework name should not contain minus symbols`() = withProject("test-framework-project") {
|
||||||
assumeTrue(HostManager.hostIsMac)
|
assumeTrue(HostManager.hostIsMac)
|
||||||
components.withType(KotlinNativeMainComponent::class.java)
|
components.withType(KotlinNativeMainComponent::class.java)
|
||||||
.getByName("main")
|
.getByName("main")
|
||||||
|
|||||||
Reference in New Issue
Block a user