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

@testset "Documenter" begin
    # Build the example docs
# Test missing docs
include("missingdocs/make.jl")

# Error reporting.
println("="^50)
info("The following errors are expected output.")
include(joinpath("errors", "make.jl"))
info("END of expected error output.")
println("="^50)

# Primary @testset

if VERSION >= v"0.5.0-dev+7720"

    # Error reporting.
    @info "Building errors/make.jl"
    const Test = BaseTestNext
end

@testset "Documenter" begin
    # Unit tests for module internals.
    include("utilities.jl")
    # DocSystem unit tests.
    include("docsystem.jl")

    # CrossReferences
    include("crossreferences.jl")

    # DocTest unit tests.
    @info "Running tests in doctests/"
    include("doctests/docmeta.jl")
    include("doctests/doctestapi.jl")
    include("doctests/doctests.jl")
    include("doctests/fix/tests.jl")

    # DOM Tests.
    include("dom.jl")

    # MDFlatten tests.
    include("mdflatten.jl")

    # Main build pipeline (Builder and Expanders modules)
    include("pipeline.jl")

    # HTMLWriter
    include("htmlwriter.jl")

    # LaTeXWriter
    include("latexwriter.jl")

    # Deployment configurations
    include("deployconfig.jl")
    include("deploydocs.jl")

    # Mock package docs.
    include("examples/tests.jl")

    # A simple build outside of a Git repository
    @info "Building nongit/tests.jl"
    @quietly include("nongit/tests.jl")

    # A simple build evaluating code outside build directory
    @info "Building workdir/tests.jl"
    @quietly include("workdir/tests.jl")

    # Passing a writer positionally (https://github.com/JuliaDocs/Documenter.jl/issues/1046)
    @test_throws ArgumentError makedocs(sitename="", HTML())

    # Running doctest() on our own manual
    @info "doctest() Documenter's manual"
    @quietly include("manual.jl")
end

<MSG> Add basic 'strict' mode to `makedocs`

<DFF> @@ -7,13 +7,6 @@ include("examples/make.jl")
 # Test missing docs
 include("missingdocs/make.jl")
 
-# Error reporting.
-println("="^50)
-info("The following errors are expected output.")
-include(joinpath("errors", "make.jl"))
-info("END of expected error output.")
-println("="^50)
-
 # Primary @testset
 
 if VERSION >= v"0.5.0-dev+7720"
@@ -23,6 +16,13 @@ else
     const Test = BaseTestNext
 end
 
+# Error reporting.
+println("="^50)
+info("The following errors are expected output.")
+include(joinpath("errors", "make.jl"))
+info("END of expected error output.")
+println("="^50)
+
 @testset "Documenter" begin
     # Unit tests for module internals.
     include("utilities.jl")

Add basic 'strict' mode to `makedocs`