Skip to content

Commit

Permalink
Merge branch 'master' into mp/parse-step
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi committed Jun 8, 2019
2 parents 49d0549 + 2c94aba commit 6f714fd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/doctests/fix/tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@ using Documenter, Test

println("="^50)
@info("Testing `doctest = :fix`")
#mktempdir(@__DIR__) do dir
let dir = joinpath(@__DIR__, "foo")
mkdir(dir)
#srcdir = mktempdir(dir)
srcdir = joinpath(dir, "src"); mkdir(srcdir)
mktempdir(@__DIR__) do dir
srcdir = mktempdir(dir)
builddir = mktempdir(dir)
cp(joinpath(@__DIR__, "broken.md"), joinpath(srcdir, "index.md"))
cp(joinpath(@__DIR__, "broken.jl"), joinpath(srcdir, "src.jl"))
include(joinpath(srcdir, "src.jl"))
@eval using .Foo
# fix up
makedocs(sitename="-", modules = [Foo], source = srcdir, build = builddir, doctest = :fix)
include(joinpath(srcdir, "src.jl"))
# test that strict = true works
makedocs(sitename="-", modules = [Foo], source = srcdir, build = builddir, strict = true)
# also test that we obtain the expected output
Expand Down

0 comments on commit 6f714fd

Please sign in to comment.