added better tests to check if kdoc stops working again and a few more diagnostics and warnings

This commit is contained in:
James Strachan
2012-04-11 09:55:04 +01:00
parent 88d3e3676c
commit 7f5631bcfc
3 changed files with 4 additions and 2 deletions
@@ -28,7 +28,7 @@ class GenerateSiteTest : TestCase() {
// now lets assert that the API docs generated everything
assertFilesExist(outDir, "Expected generate API docs are missing - API doc generation failure",
"kotlin/package.html", "kotlin/dom/package.html")
"kotlin/package-frame.html", "kotlin/dom/package-frame.html", "kotlin/test/package-frame.html")
}
fun testCopyJSApiDocs(): Unit {
@@ -60,7 +60,7 @@ class JavadocStyleHtmlDoclet() : Doclet {
}
println("Generating kdoc to $outputDir")
println("Generating kdoc to $outputDir excluding packages ${model.config.ignorePackages}")
run("allclasses-frame.html", AllClassesFrameTemplate(model, " target=\"classFrame\""))
run("allclasses-noframe.html", AllClassesFrameTemplate(model))
// run("constant-values.html", ConstantValuesTemplate(model))
@@ -199,6 +199,8 @@ class KModel(var context: BindingContext, val config: KDocConfig) {
val namespaceDescriptor = BindingContextUtils.namespaceDescriptor(context, source)
if (namespaceDescriptor != null) {
allNamespaces.add(namespaceDescriptor);
} else {
warning("No NamespaceDescriptor for source $source")
}
}
}