<NME> navnode.jl
<BEF> module NavNodeTests

using Base.Test
using Compat
import Documenter: Documents, Builder
import Documenter.Documents: NavNode
    navlist :: Vector{NavNode}
    FakeDocumentInternal() = new([])
end
mutable struct FakeDocument
    internal  :: FakeDocumentInternal
    blueprint :: FakeDocumentBlueprint
    FakeDocument() = new(FakeDocumentInternal(), FakeDocumentBlueprint())
    internal :: FakeDocumentInternal
    FakeDocument() = new(FakeDocumentInternal())
end
@test fieldtype(FakeDocumentInternal, :navlist) == fieldtype(Documents.Internal, :navlist)

pages = [
    "page1.md",
    "Page2" => "page2.md",
    "Section" => [
        "page3.md",
        "Page4" => "page4.md",
        "Subsection" => [
            "page5.md",
        ],
    ],
    "page6.md",
]
doc = FakeDocument()
doc.internal.pages = Dict(map(i -> "page$i.md" => nothing, 1:8))
navtree = Builder.walk_navpages(pages, nothing, doc)
navlist = doc.internal.navlist

@test length(navlist) == 6
for (i,navnode) in enumerate(navlist)
    @test get(navnode.page) == "page$i.md"
end

@test isa(navtree, Vector{NavNode})
@test length(navtree) == 4
@test navtree[1] === navlist[1]
@test navtree[2] === navlist[2]
@test navtree[4] === navlist[6]

section = navtree[3]
@test get(section.title_override) == "Section"
@test isnull(section.page)
@test length(section.children) == 3

navpath = Documents.navpath(navlist[5])
@test length(navpath) == 3
@test navpath[1] === section
@test navpath[3] === navlist[5]

end # module NavNodeTests
    @test repr(navlist[5]) == "NavNode(\"page5.md\", nothing, NavNode(nothing, ...))"
    @test repr(navlist[6]) == "NavNode(\"page6.md\", nothing, nothing)"
end

end

<MSG> Use testsets for navnode.jl

<DFF> @@ -1,6 +1,12 @@
 module NavNodeTests
 
-using Base.Test
+if VERSION >= v"0.5.0-dev+7720"
+    using Base.Test
+else
+    using BaseTestNext
+    const Test = BaseTestNext
+end
+
 using Compat
 import Documenter: Documents, Builder
 import Documenter.Documents: NavNode
@@ -14,44 +20,47 @@ type FakeDocument
     internal :: FakeDocumentInternal
     FakeDocument() = new(FakeDocumentInternal())
 end
-@test fieldtype(FakeDocumentInternal, :navlist) == fieldtype(Documents.Internal, :navlist)
-
-pages = [
-    "page1.md",
-    "Page2" => "page2.md",
-    "Section" => [
-        "page3.md",
-        "Page4" => "page4.md",
-        "Subsection" => [
-            "page5.md",
+
+@testset "NavNode" begin
+    @test fieldtype(FakeDocumentInternal, :navlist) == fieldtype(Documents.Internal, :navlist)
+
+    pages = [
+        "page1.md",
+        "Page2" => "page2.md",
+        "Section" => [
+            "page3.md",
+            "Page4" => "page4.md",
+            "Subsection" => [
+                "page5.md",
+            ],
         ],
-    ],
-    "page6.md",
-]
-doc = FakeDocument()
-doc.internal.pages = Dict(map(i -> "page$i.md" => nothing, 1:8))
-navtree = Builder.walk_navpages(pages, nothing, doc)
-navlist = doc.internal.navlist
-
-@test length(navlist) == 6
-for (i,navnode) in enumerate(navlist)
-    @test get(navnode.page) == "page$i.md"
-end
+        "page6.md",
+    ]
+    doc = FakeDocument()
+    doc.internal.pages = Dict(map(i -> "page$i.md" => nothing, 1:8))
+    navtree = Builder.walk_navpages(pages, nothing, doc)
+    navlist = doc.internal.navlist
+
+    @test length(navlist) == 6
+    for (i,navnode) in enumerate(navlist)
+        @test get(navnode.page) == "page$i.md"
+    end
 
-@test isa(navtree, Vector{NavNode})
-@test length(navtree) == 4
-@test navtree[1] === navlist[1]
-@test navtree[2] === navlist[2]
-@test navtree[4] === navlist[6]
+    @test isa(navtree, Vector{NavNode})
+    @test length(navtree) == 4
+    @test navtree[1] === navlist[1]
+    @test navtree[2] === navlist[2]
+    @test navtree[4] === navlist[6]
 
-section = navtree[3]
-@test get(section.title_override) == "Section"
-@test isnull(section.page)
-@test length(section.children) == 3
+    section = navtree[3]
+    @test get(section.title_override) == "Section"
+    @test isnull(section.page)
+    @test length(section.children) == 3
 
-navpath = Documents.navpath(navlist[5])
-@test length(navpath) == 3
-@test navpath[1] === section
-@test navpath[3] === navlist[5]
+    navpath = Documents.navpath(navlist[5])
+    @test length(navpath) == 3
+    @test navpath[1] === section
+    @test navpath[3] === navlist[5]
+end
 
-end # module NavNodeTests
+end

Use testsets for navnode.jl