skip visual regression tests on windows

This commit is contained in:
Daniel Schwabeneder 2018-09-06 22:08:32 +02:00
parent 874dacd2c8
commit cccbaa0bdc

View File

@ -14,18 +14,20 @@ img_tol = isinteractive() ? 1e-2 : 10e-2
@test gr() == Plots.GRBackend() @test gr() == Plots.GRBackend()
@test backend() == Plots.GRBackend() @test backend() == Plots.GRBackend()
# image_comparison_facts(:gr, tol=img_tol, skip = [25, 30]) @static if Sys.islinux()
end image_comparison_facts(:gr, tol=img_tol, skip = [25, 30])
@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
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 @testset "UnicodePlots" begin
@test unicodeplots() == Plots.UnicodePlotsBackend() @test unicodeplots() == Plots.UnicodePlotsBackend()
@test backend() == Plots.UnicodePlotsBackend() @test backend() == Plots.UnicodePlotsBackend()
@ -37,22 +39,22 @@ end
# The plotlyjs testimages return a connection error on travis: # The plotlyjs testimages return a connection error on travis:
# connect: connection refused (ECONNREFUSED) # connect: connection refused (ECONNREFUSED)
@static if isinteractive() # @static if isinteractive()
@testset "PlotlyJS" begin # @testset "PlotlyJS" begin
@test plotlyjs() == Plots.PlotlyJSBackend() # @test plotlyjs() == Plots.PlotlyJSBackend()
@test backend() == Plots.PlotlyJSBackend() # @test backend() == Plots.PlotlyJSBackend()
#
image_comparison_facts(:plotlyjs, # image_comparison_facts(:plotlyjs,
skip=[ # skip=[
2, # animation (skipped for speed) # 2, # animation (skipped for speed)
25, # 25,
27, # (polar plots) takes very long / not working # 27, # (polar plots) takes very long / not working
30, # 30,
31, # animation (skipped for speed) # 31, # animation (skipped for speed)
], # ],
tol=img_tol) # tol=img_tol)
end # end
end # end
# InspectDR returns that error on travis: # InspectDR returns that error on travis:
# ERROR: LoadError: InitError: Cannot open display: # ERROR: LoadError: InitError: Cannot open display: