diff options
author | Paul Merlin <paul@gradle.com> | 2018-09-15 16:34:04 +0200 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2019-01-25 17:29:02 +0300 |
commit | a32ce3282935b382f285f66c65484409d96328c7 (patch) | |
tree | 72fd698816e2b6166d87b618c8041d9d56e3f482 /runners/gradle-integration-tests/src/test/kotlin | |
parent | 43ab42296520e8fba8d115ab1f6e3a9388f818d3 (diff) | |
download | dokka-a32ce3282935b382f285f66c65484409d96328c7.tar.gz dokka-a32ce3282935b382f285f66c65484409d96328c7.tar.bz2 dokka-a32ce3282935b382f285f66c65484409d96328c7.zip |
Refine type safe configuration test
Signed-off-by: Paul Merlin <paul@gradle.com>
Diffstat (limited to 'runners/gradle-integration-tests/src/test/kotlin')
-rw-r--r-- | runners/gradle-integration-tests/src/test/kotlin/org/jetbrains/dokka/gradle/TypeSafeConfigurationTest.kt | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/runners/gradle-integration-tests/src/test/kotlin/org/jetbrains/dokka/gradle/TypeSafeConfigurationTest.kt b/runners/gradle-integration-tests/src/test/kotlin/org/jetbrains/dokka/gradle/TypeSafeConfigurationTest.kt index ab8bc62b..7b179e92 100644 --- a/runners/gradle-integration-tests/src/test/kotlin/org/jetbrains/dokka/gradle/TypeSafeConfigurationTest.kt +++ b/runners/gradle-integration-tests/src/test/kotlin/org/jetbrains/dokka/gradle/TypeSafeConfigurationTest.kt @@ -1,10 +1,8 @@ package org.jetbrains.dokka.gradle -import org.gradle.testkit.runner.TaskOutcome import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.Parameterized -import kotlin.test.assertEquals @RunWith(Parameterized::class) class TypeSafeConfigurationTest(private val testCase: TestCase) : AbstractDokkaGradleTest() { @@ -25,14 +23,14 @@ class TypeSafeConfigurationTest(private val testCase: TestCase) : AbstractDokkaG @Test fun test() { - testDataFolder.resolve("typeSafeConfiguration").toFile().copyRecursively(testProjectDir.root) + + testDataFolder.resolve("typeSafeConfiguration").toFile() + .copyRecursively(testProjectDir.root) + configure( testCase.gradleVersion, testCase.kotlinVersion, arguments = arrayOf("help", "-s") - ).build().apply { - println(output) - assertEquals(TaskOutcome.SUCCESS, task(":help")?.outcome) - } + ).build() } -}
\ No newline at end of file +} |