Documenter.jl icon indicating copy to clipboard operation
Documenter.jl copied to clipboard

Executing jldoctest blocks out of process

Open amitmurthy opened this issue 7 years ago • 1 comments

It will be nice to have an option to execute jldoctest blocks in an external, spawned process. This would be an alternate option to wrapping the code block in a module before execution. Will help in addressing issues like https://github.com/JuliaLang/Distributed.jl/issues/19 . stdout of the spawned process can be used to check for correctness.

amitmurthy avatar Nov 27 '18 10:11 amitmurthy

Definitely something we could consider. Should be a non-default option of a doctest I think. It will make the doctest execution much slower. Is there some API that would allow us to spawn a child Julia REPL session or something? Or should it be done with run?

Not very high priority though, so implementation is up for grabs.

mortenpi avatar Dec 01 '18 03:12 mortenpi