diff --git a/test/runtests.jl b/test/runtests.jl index 40afb1c..0127769 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -4,6 +4,17 @@ using Test @testset "$file" for file in sort([ file for file in readdir(@__DIR__) if match(r"^test_.*\.jl$", file) !== nothing ]) + + if file == "test_doctest.jl" + if lowercase(get(ENV, "JULIA_PKGEVAL", "false")) == "true" + @info "Skipping doctests on PkgEval." + continue + elseif VERSION >= v"1.5-" + @info "Skipping doctests on Julia $VERSION." + continue + end + end + include(file) end diff --git a/test/test_doctest.jl b/test/test_doctest.jl index 4fed5c4..032e572 100644 --- a/test/test_doctest.jl +++ b/test/test_doctest.jl @@ -5,11 +5,7 @@ using Documenter: doctest using Test @testset "doctest" begin - if lowercase(get(ENV, "JULIA_PKGEVAL", "false")) == "true" - @info "Skipping doctests on PkgEval." - else - doctest(LazyGroupBy) - end + doctest(LazyGroupBy) end end # module