diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-07-01 16:39:32 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-07-01 16:39:32 +0200 |
commit | cb97c45aa0b0204ebc61a149794518d50b262814 (patch) | |
tree | 687b99d5966f8db53c9075464c605f51d4affaee /core/src/test/kotlin | |
parent | ae642832a1a27aa98e34195047f0c08e325f23de (diff) | |
download | dokka-cb97c45aa0b0204ebc61a149794518d50b262814.tar.gz dokka-cb97c45aa0b0204ebc61a149794518d50b262814.tar.bz2 dokka-cb97c45aa0b0204ebc61a149794518d50b262814.zip |
introduce GFM output format
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r-- | core/src/test/kotlin/format/GFMFormatTest.kt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/src/test/kotlin/format/GFMFormatTest.kt b/core/src/test/kotlin/format/GFMFormatTest.kt new file mode 100644 index 00000000..7f7ee286 --- /dev/null +++ b/core/src/test/kotlin/format/GFMFormatTest.kt @@ -0,0 +1,19 @@ +package org.jetbrains.dokka.tests + +import org.jetbrains.dokka.GFMFormatService +import org.jetbrains.dokka.KotlinLanguageService +import org.junit.Test + +class GFMFormatTest { + private val gfmService = GFMFormatService(InMemoryLocationService, KotlinLanguageService()) + + @Test fun sample() { + verifyGFMNodeByName("sample", "Foo") + } + + private fun verifyGFMNodeByName(fileName: String, name: String) { + verifyOutput("testdata/format/gfm/$fileName.kt", ".md") { model, output -> + gfmService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == name }) + } + } +} |