diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-08-19 12:01:01 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-19 13:34:10 +0200 |
commit | 60acc7aa3e4294a80a9c816bac0246ce6d9db1fa (patch) | |
tree | 1dcb860204581a880f4a01a839d46717ad7ee2dd /plugins/base/src/test | |
parent | 6ca48a067d90b200cb93332235821549bb1a742b (diff) | |
download | dokka-60acc7aa3e4294a80a9c816bac0246ce6d9db1fa.tar.gz dokka-60acc7aa3e4294a80a9c816bac0246ce6d9db1fa.tar.bz2 dokka-60acc7aa3e4294a80a9c816bac0246ce6d9db1fa.zip |
Fix test path for Windows
Diffstat (limited to 'plugins/base/src/test')
-rw-r--r-- | plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt | 9 | ||||
-rw-r--r-- | plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt b/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt index e6546311..dcf08f27 100644 --- a/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt +++ b/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt @@ -16,7 +16,8 @@ import org.junit.jupiter.api.Test import java.net.URL class DefaultExternalLocationProviderTest : AbstractCoreTest() { - private val testDataDir = getTestDataDir("locationProvider").toAbsolutePath() + private val testDataDir = + getTestDataDir("locationProvider").toAbsolutePath().toString().removePrefix("/").let { "/$it" } private val kotlinLang = "https://kotlinlang.org/api/latest/jvm/stdlib" private val packageListURL = URL("file://$testDataDir/stdlib-package-list") private val configuration = dokkaConfiguration { @@ -54,8 +55,10 @@ class DefaultExternalLocationProviderTest : AbstractCoreTest() { Callable( "longArray", null, - listOf(TypeConstructor("kotlin.Int", emptyList()), - TypeConstructor("kotlin.Any", emptyList())) + listOf( + TypeConstructor("kotlin.Int", emptyList()), + TypeConstructor("kotlin.Any", emptyList()) + ) ) ) diff --git a/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt b/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt index 0d419520..590bc0a3 100644 --- a/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt +++ b/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt @@ -14,7 +14,8 @@ import org.junit.jupiter.api.Test import java.net.URL class Dokka010ExternalLocationProviderTest : AbstractCoreTest() { - private val testDataDir = getTestDataDir("locationProvider").toAbsolutePath() + private val testDataDir = + getTestDataDir("locationProvider").toAbsolutePath().toString().removePrefix("/").let { "/$it" } private val kotlinLang = "https://kotlinlang.org/api/latest/jvm/stdlib" private val packageListURL = URL("file://$testDataDir/old-package-list") private val configuration = dokkaConfiguration { |