Skip to content

Commit

Permalink
improved labels for testsets
Browse files Browse the repository at this point in the history
  • Loading branch information
haberdashPI committed Jul 19, 2019
1 parent b8d80dc commit 8227033
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8227033

Please sign in to comment.