Skip to content

Commit

Permalink
WIP: print block location and timing for doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed May 5, 2023
1 parent 233a782 commit 70fa0d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DocTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@ mutable struct Result
end

function eval_repl(block, sandbox, meta::Dict, doc::Documenter.Document, page)
for (input, output) in repl_splitter(block.code)
file = meta[:CurrentFile]
lines = Documenter.find_block_in_file(block.code, file)
println("page: $(Documenter.locrepr(file, lines))")
@time for (input, output) in repl_splitter(block.code)
result = Result(block, input, output, meta[:CurrentFile])
for (ex, str) in Documenter.parseblock(input, doc, page; keywords = false, raise=false)
# Input containing a semi-colon gets suppressed in the final output.
Expand Down

0 comments on commit 70fa0d6

Please sign in to comment.