From 192020a93af68a4e43819891a46fbe962c118065 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Thu, 6 Sep 2018 22:08:32 +0200 Subject: [PATCH] skip visual regression tests on windows --- test/runtests.jl | 52 +++++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 62dc73e1..f98f877c 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -14,18 +14,20 @@ img_tol = isinteractive() ? 1e-2 : 10e-2 @test gr() == Plots.GRBackend() @test backend() == Plots.GRBackend() - # image_comparison_facts(:gr, tol=img_tol, skip = [25, 30]) -end - -@static if isinteractive() - @testset "PyPlot" begin - @test pyplot() == Plots.PyPlotBackend() - @test backend() == Plots.PyPlotBackend() - - image_comparison_facts(:pyplot, tol=img_tol, skip = [2, 25, 30, 31]) + @static if Sys.islinux() + image_comparison_facts(:gr, tol=img_tol, skip = [25, 30]) end end +# @static if isinteractive() +# @testset "PyPlot" begin +# @test pyplot() == Plots.PyPlotBackend() +# @test backend() == Plots.PyPlotBackend() +# +# image_comparison_facts(:pyplot, tol=img_tol, skip = [2, 25, 30, 31]) +# end +# end + @testset "UnicodePlots" begin @test unicodeplots() == Plots.UnicodePlotsBackend() @test backend() == Plots.UnicodePlotsBackend() @@ -37,22 +39,22 @@ end # The plotlyjs testimages return a connection error on travis: # connect: connection refused (ECONNREFUSED) -@static if isinteractive() - @testset "PlotlyJS" begin - @test plotlyjs() == Plots.PlotlyJSBackend() - @test backend() == Plots.PlotlyJSBackend() - - image_comparison_facts(:plotlyjs, - skip=[ - 2, # animation (skipped for speed) - 25, - 27, # (polar plots) takes very long / not working - 30, - 31, # animation (skipped for speed) - ], - tol=img_tol) - end -end +# @static if isinteractive() +# @testset "PlotlyJS" begin +# @test plotlyjs() == Plots.PlotlyJSBackend() +# @test backend() == Plots.PlotlyJSBackend() +# +# image_comparison_facts(:plotlyjs, +# skip=[ +# 2, # animation (skipped for speed) +# 25, +# 27, # (polar plots) takes very long / not working +# 30, +# 31, # animation (skipped for speed) +# ], +# tol=img_tol) +# end +# end # InspectDR returns that error on travis: # ERROR: LoadError: InitError: Cannot open display: