<NME> runtests.jl
<BEF> using Test
import Documenter
include("TestUtilities.jl"); using Main.TestUtilities

@testset "Documenter" begin
    # Build the example docs
    @info "Building example/make.jl"
    include("examples/make.jl")

    # Test missing docs
    @info "Building missingdocs/make.jl"
    include("missingdocs/make.jl")

    # Error reporting.
    @info "Building errors/make.jl"
    @quietly include("errors/make.jl")

    # Unit tests for module internals.

end

# tests module
# ============

    end
end

@test length(doc.internal.objects) == 7

# Documenter package docs:


<MSG> Add {autodocs} block.

<DFF> @@ -19,6 +19,60 @@ type T end
 
 end
 
+# autodocs module
+# ===============
+
+"`AutoDocs` module."
+module AutoDocs
+
+"Function `f`."
+f(x) = x
+
+"Constant `K`."
+const K = 1
+
+"Type `T`."
+type T end
+
+"Macro `@m`."
+macro m() end
+
+"Module `A`."
+module A
+
+"Function `A.f`."
+f(x) = x
+
+"Constant `A.K`."
+const K = 1
+
+"Type `B.T`."
+type T end
+
+"Macro `B.@m`."
+macro m() end
+
+end
+
+"Module `B`."
+module B
+
+"Function `B.f`."
+f(x) = x
+
+"Constant `B.K`."
+const K = 1
+
+"Type `B.T`."
+type T end
+
+"Macro `B.@m`."
+macro m() end
+
+end
+
+end
+
 # tests module
 # ============
 
@@ -127,7 +181,7 @@ let headers = doc.internal.headers
     end
 end
 
-@test length(doc.internal.objects) == 7
+@test length(doc.internal.objects) == 22
 
 # Documenter package docs:
 

Add {autodocs} block.