From 8227033d70dee60da77f59502a253032a924d249 Mon Sep 17 00:00:00 2001 From: David Little Date: Fri, 19 Jul 2019 16:58:10 -0400 Subject: [PATCH] improved labels for testsets --- test/runtests.jl | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 6825e9b..cd46f30 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -114,24 +114,27 @@ allowed_dimensions = Dict(:ggplot2 => 6,:vegalite => 4,:gadfly => 4) AxisArray(rand(10,10,2,2,2,2,2),:a,:b,:c,:d,:e,:f,:h) ] - for d in alldata - for b in PlotAxes.list_backends() - PlotAxes.set_backend!(b) - if allowed_dimensions[b] >= ndims(d) - result = plotaxes(d) + for b in PlotAxes.list_backends() + for d in alldata + title = string("Backend ",b) + @testset "$title" begin + PlotAxes.set_backend!(b) + if allowed_dimensions[b] >= ndims(d) + result = plotaxes(d) + @test result != false + else + @test_throws ErrorException plotaxes(d) + end + + result = if ndims(d) == 3 + plotaxes(d,:a,:b => log,:c) + elseif ndims(d) == 2 + plotaxes(d,:a,:b => log) + elseif ndims(d) == 1 + plotaxes(d,:a => log) + end @test result != false - else - @test_throws ErrorException plotaxes(d) - end - - result = if ndims(d) == 3 - plotaxes(d,:a,:b => log,:c) - elseif ndims(d) == 2 - plotaxes(d,:a,:b => log) - elseif ndims(d) == 1 - plotaxes(d,:a => log) end - @test result != false end end