Skip to content

Commit

Permalink
test: Generate a CairoMakie plot for each theme
Browse files Browse the repository at this point in the history
  • Loading branch information
musoke committed May 7, 2024
1 parent 8667bba commit 2ce7dfb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
MakieCore = "20f20a25-4f0e-4fdf-b5d1-57303727442b"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Expand Down
10 changes: 10 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ using TuePlots
using Test, SafeTestsets, Aqua
import MakieCore, Plots

using CairoMakie

function makie_plot(s)
with_theme(MakieCore.Theme(s)) do
lines(1:4, 1:4)
end
end

@testset "TuePlots.jl" begin
setting_keys = TuePlots.get_available_settings()

Expand All @@ -14,6 +22,8 @@ import MakieCore, Plots
else
@test_throws ErrorException MakieCore.Theme(s; single_column = true)
end

@test makie_plot(s) isa Makie.FigureAxisPlot
end
end

Expand Down

0 comments on commit 2ce7dfb

Please sign in to comment.