Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ExplicitImports = "1"
LinearAlgebra = "1"
Plots = "1"
RecipesBase = "0.8, 1.0"
SafeTestsets = "0.1, 1"
Test = "1"
julia = "1.10"

Expand All @@ -20,7 +21,8 @@ Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "ExplicitImports", "JET", "Plots", "Test"]
test = ["Aqua", "ExplicitImports", "JET", "Plots", "SafeTestsets", "Test"]
2 changes: 2 additions & 0 deletions test/qa/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
DimensionalPlotRecipes = "c619ae07-58cd-5f6d-b883-8f17bd6a98f9"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
Expand All @@ -10,5 +11,6 @@ DimensionalPlotRecipes = {path = "../.."}
[compat]
Aqua = "0.8"
JET = "0.9,0.10,0.11"
SafeTestsets = "0.1, 1"
Test = "1"
julia = "1.10"
8 changes: 5 additions & 3 deletions test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
using DimensionalPlotRecipes, Aqua, JET, Test
using SafeTestsets

@testset "Aqua" begin
@safetestset "Aqua" begin
using DimensionalPlotRecipes, Aqua, Test
# deps_compat and piracies are genuine findings tracked in
# https://github.com/SciML/DimensionalPlotRecipes.jl/issues/50
Aqua.test_all(DimensionalPlotRecipes; deps_compat = false, piracies = false)
@test_broken false # Aqua deps_compat: root Project.toml lacks compat for Aqua/JET extras — see https://github.com/SciML/DimensionalPlotRecipes.jl/issues/50
@test_broken false # Aqua piracies: @recipe-generated apply_recipe on RecipesBase types — see https://github.com/SciML/DimensionalPlotRecipes.jl/issues/50
end

@testset "JET" begin
@safetestset "JET" begin
using DimensionalPlotRecipes, JET, Test
@test_broken false # JET: no matching method `is_key_supported(::Symbol)` in apply_recipe — see https://github.com/SciML/DimensionalPlotRecipes.jl/issues/50
end
13 changes: 13 additions & 0 deletions test/recipes.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using DimensionalPlotRecipes
using Plots

A = rand(5, 2) .+ im .* rand(5, 2)
t = range(0, stop = 1, length = 5)

plot(t, A)

t = range(0, stop = 1, length = 5)
plot(t, A)
plot(t, A, transformation = :split3D)
plot(t, A, transformation = :modulus)
plot(t, A, transformation = :modulus2)
16 changes: 3 additions & 13 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
using DimensionalPlotRecipes, Test
using DimensionalPlotRecipes, SafeTestsets, Test

const GROUP = get(ENV, "GROUP", "All")

if GROUP == "All" || GROUP == "Core"
# Test explicit imports hygiene
include("explicit_imports.jl")
@safetestset "Explicit Imports" include("explicit_imports.jl")

A = rand(5, 2) .+ im .* rand(5, 2)
t = range(0, stop = 1, length = 5)

using Plots
plot(t, A)

t = range(0, stop = 1, length = 5)
plot(t, A)
plot(t, A, transformation = :split3D)
plot(t, A, transformation = :modulus)
plot(t, A, transformation = :modulus2)
@safetestset "Recipes" include("recipes.jl")
end

if GROUP == "QA"
Expand Down