Is there a way to test individual `jldoctests`?

I am using Documenter.jl for the first time and my attempts at using jldoctest aren’t very good. There are a lot of failures.

It would be nice to debug these failures one by one, say


Returns 1

julia> foo("a")
foo(x) = 2

How is there some way to use jldoctest to debug failures like the above?

Copy-paste it to the REPL?

1 Like


Also don’t use random number generators if they aren’t absolutely necessary.

1 Like