Skip to content

Commit a9623fc

Browse files
one example testset per backend
1 parent be66279 commit a9623fc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/test_backends.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ is_pkgeval() || @testset "PlotlyJS" begin
213213
end
214214
end
215215

216-
is_pkgeval() || @testset "Examples" begin
216+
is_pkgeval() || @testset "Examples $be" for be in TEST_BACKENDS
217217
callback(m, pkgname, i) = begin
218218
pl = m.Plots.current()
219219
save_func = (; pgfplotsx = m.Plots.pdf, unicodeplots = m.Plots.txt) # fastest `savefig` for each backend
@@ -224,9 +224,8 @@ is_pkgeval() || @testset "Examples" begin
224224
)
225225
@test filesize(fn) > 1_000
226226
end
227-
Sys.islinux() && for be in TEST_BACKENDS
228-
skip = vcat(Plots._backend_skips[be], blacklist)
229-
Plots.test_examples(be; skip, callback, disp = is_ci(), strict = true) # `ci` display for coverage
230-
closeall()
231-
end
227+
Sys.islinux() || continue
228+
skip = vcat(Plots._backend_skips[be], blacklist)
229+
Plots.test_examples(be; skip, callback, disp = is_ci(), strict = true) # `ci` display for coverage
230+
closeall()
232231
end

0 commit comments

Comments
 (0)