diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-03-24 16:19:51 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-03-25 12:54:56 +0100 |
commit | 3f8fef0f65fe96fb2a3b1dc2280a16b175fbb6c9 (patch) | |
tree | 3ec24bb98f64503501133ddf90a938e30db164a6 /plugins/base/src/test/kotlin/issues | |
parent | 3c6624aa876b9b55baa32b121240f7bc7eda8116 (diff) | |
download | dokka-3f8fef0f65fe96fb2a3b1dc2280a16b175fbb6c9.tar.gz dokka-3f8fef0f65fe96fb2a3b1dc2280a16b175fbb6c9.tar.bz2 dokka-3f8fef0f65fe96fb2a3b1dc2280a16b175fbb6c9.zip |
Fix stdlib tests by adding stdlib to the test classpath
Diffstat (limited to 'plugins/base/src/test/kotlin/issues')
-rw-r--r-- | plugins/base/src/test/kotlin/issues/IssuesTest.kt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/base/src/test/kotlin/issues/IssuesTest.kt b/plugins/base/src/test/kotlin/issues/IssuesTest.kt index 41fc2632..f67229b7 100644 --- a/plugins/base/src/test/kotlin/issues/IssuesTest.kt +++ b/plugins/base/src/test/kotlin/issues/IssuesTest.kt @@ -32,14 +32,19 @@ class IssuesTest : AbstractModelTest("/src/main/kotlin/issues/Test.kt", "issues" | | fun doSomething(): String = "Hello" |} - """ + """, + configuration = dokkaConfiguration { + passes { + pass { + sourceRoots = listOf("src/") + classpath = listOfNotNull(jvmStdlibPath) + } + } + } ) { with((this / "issues" / "Test").cast<DClass>()) { - // passes (this / "working").cast<DFunction>().type.name equals "String" (this / "doSomething").cast<DFunction>().type.name equals "String" - - // fails (this / "brokenGenerics").cast<DFunction>().type.name equals "List" (this / "brokenApply").cast<DFunction>().type.name equals "Test" (this / "brokenRun").cast<DFunction>().type.name equals "Test" |