Alexey Tsvetkov
4 years ago
committed by
Alexey Tsvetkov
5 changed files with 25 additions and 9 deletions
@ -1,13 +1,12 @@
|
||||
package org.jetbrains.compose.test |
||||
|
||||
import org.junit.Rule |
||||
import org.junit.rules.TemporaryFolder |
||||
import org.junit.jupiter.api.io.TempDir |
||||
import java.io.File |
||||
|
||||
abstract class GradlePluginTestBase { |
||||
@Rule |
||||
@JvmField |
||||
val testDir: TemporaryFolder = TemporaryFolder() |
||||
@TempDir |
||||
lateinit var testWorkDir: File |
||||
|
||||
fun testProject(name: String): TestProject = |
||||
TestProject(name, workingDir = testDir.root) |
||||
TestProject(name, workingDir = testWorkDir) |
||||
} |
||||
|
@ -0,0 +1,10 @@
|
||||
package org.jetbrains.compose.test |
||||
|
||||
import org.junit.jupiter.api.DisplayNameGenerator |
||||
|
||||
class GradleTestNameGenerator : DisplayNameGenerator.Standard() { |
||||
private val gradleVersion = "[Gradle '${TestProperties.gradleVersionForTests}']" |
||||
|
||||
override fun generateDisplayNameForClass(testClass: Class<*>?): String = |
||||
super.generateDisplayNameForClass(testClass) + gradleVersion |
||||
} |
Loading…
Reference in new issue