From 0724321625256e7a14f7f590b01212558e8bdd4d Mon Sep 17 00:00:00 2001 From: Michael Kraus Date: Mon, 13 May 2024 15:09:05 +0200 Subject: [PATCH] Use SafeTestsets. --- Project.toml | 3 ++- test/bsplinekit_tests.jl | 1 + test/fft_tests.jl | 1 + test/runtests.jl | 13 +++---------- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Project.toml b/Project.toml index 8fb9903..a61ae59 100644 --- a/Project.toml +++ b/Project.toml @@ -19,7 +19,8 @@ ToeplitzMatrices = "0.8" julia = "1.8" [extras] +SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test"] +test = ["SafeTestsets", "Test"] diff --git a/test/bsplinekit_tests.jl b/test/bsplinekit_tests.jl index 9da5eb0..ec18d50 100644 --- a/test/bsplinekit_tests.jl +++ b/test/bsplinekit_tests.jl @@ -1,6 +1,7 @@ using BSplineKit using PoissonSolvers using PoissonSolvers: evalsolution +using Test nknot = 32 order = 5 diff --git a/test/fft_tests.jl b/test/fft_tests.jl index 752eb1d..1c46556 100644 --- a/test/fft_tests.jl +++ b/test/fft_tests.jl @@ -1,5 +1,6 @@ using PoissonSolvers using PoissonSolvers: nearest_index, nearest_indices +using Test ngrid = 64 diff --git a/test/runtests.jl b/test/runtests.jl index 61e86a7..1e72355 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,11 +1,4 @@ -using PoissonSolvers -using Test +using SafeTestsets -@testset "PoissonSolvers.jl" begin - @testset "FFT Solvers" begin - include("fft_tests.jl") - end - @testset "BSplineKit Solvers" begin - include("bsplinekit_tests.jl") - end -end +@safetestset "FFT Solvers " begin include("fft_tests.jl") end +@safetestset "BSplineKit Solvers " begin include("bsplinekit_tests.jl") end