aboutsummaryrefslogtreecommitdiff
path: root/core/src/test
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-01-28 14:22:11 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-10 12:16:32 +0100
commit663d8e04dc78ce9bfe02cb1e84f27faab1e34208 (patch)
tree1b972022c950d1244f7baaece40282d2a616e9ab /core/src/test
parent612e8c2f6f1b52f19c6ae51aa3d5655dfb43ba0c (diff)
downloaddokka-663d8e04dc78ce9bfe02cb1e84f27faab1e34208.tar.gz
dokka-663d8e04dc78ce9bfe02cb1e84f27faab1e34208.tar.bz2
dokka-663d8e04dc78ce9bfe02cb1e84f27faab1e34208.zip
contentForClass fixed and tests
Diffstat (limited to 'core/src/test')
-rw-r--r--core/src/test/kotlin/basic/DokkaBasicTests.kt35
1 files changed, 35 insertions, 0 deletions
diff --git a/core/src/test/kotlin/basic/DokkaBasicTests.kt b/core/src/test/kotlin/basic/DokkaBasicTests.kt
new file mode 100644
index 00000000..d418e36a
--- /dev/null
+++ b/core/src/test/kotlin/basic/DokkaBasicTests.kt
@@ -0,0 +1,35 @@
+package basic
+
+import org.junit.Test
+import testApi.testRunner.AbstractCoreTest
+
+class DokkaBasicTests : AbstractCoreTest() {
+
+ @Test
+ fun basic1() {
+ val configuration = dokkaConfiguration {
+ passes {
+ pass {
+ sourceRoots = listOf("src/main/kotlin/basic/Test.kt")
+ }
+ }
+ }
+
+ testInline(
+ """
+ |/src/main/kotlin/basic/Test.kt
+ |package basic
+ |
+ |class Test {
+ | val tI = 1
+ | fun tF() = 2
+ |}
+ """.trimMargin(),
+ configuration
+ ) {
+ pagesGenerationStage = {
+ println(it.dri)
+ }
+ }
+ }
+} \ No newline at end of file