From 9e332bd9ce63c75a398b75293acbebcc2367549d Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Sun, 14 Jun 2026 08:55:42 -0400 Subject: [PATCH] Use SciMLTesting v1.2 folder-based run_tests Convert the test suite to the SciMLTesting v1.2 folder-discovery model: test/runtests.jl is now `using SciMLTesting; run_tests()`. The test_groups.toml groups map to folders: Core = top-level test/*.jl; Methods/, Extensions/, Misc/ hold each group's files; QA -> test/qa/ (qa.jl + alloc_tests.jl) with its own Project.toml sub-env. SciMLTesting + SafeTestsets/Test are added to the test deps and the QA sub-env. Co-Authored-By: Chris Rackauckas Co-Authored-By: Claude Opus 4.8 (1M context) --- Project.toml | 4 +- test/{ => Extensions}/mooncake_tests.jl | 0 .../sparseconnectivitytracer_tests.jl | 0 test/{ => Extensions}/zygote_tests.jl | 0 test/{ => Methods}/derivative_tests.jl | 0 test/{ => Methods}/integral_inverse_tests.jl | 0 test/{ => Methods}/integral_tests.jl | 0 test/{ => Methods}/online_tests.jl | 0 test/{ => Misc}/show.jl | 0 test/qa/Project.toml | 19 ++++++++ test/{ => qa}/alloc_tests.jl | 0 test/{ => qa}/qa.jl | 0 test/runtests.jl | 44 +------------------ 13 files changed, 24 insertions(+), 43 deletions(-) rename test/{ => Extensions}/mooncake_tests.jl (100%) rename test/{ => Extensions}/sparseconnectivitytracer_tests.jl (100%) rename test/{ => Extensions}/zygote_tests.jl (100%) rename test/{ => Methods}/derivative_tests.jl (100%) rename test/{ => Methods}/integral_inverse_tests.jl (100%) rename test/{ => Methods}/integral_tests.jl (100%) rename test/{ => Methods}/online_tests.jl (100%) rename test/{ => Misc}/show.jl (100%) create mode 100644 test/qa/Project.toml rename test/{ => qa}/alloc_tests.jl (100%) rename test/{ => qa}/qa.jl (100%) diff --git a/Project.toml b/Project.toml index 934ba343..32e714bd 100644 --- a/Project.toml +++ b/Project.toml @@ -48,6 +48,7 @@ QuadGK = "2.9.1" RecipesBase = "1.3.4" Reexport = "1" SafeTestsets = "0.1" +SciMLTesting = "1" SparseConnectivityTracer = "1" StableRNGs = "1" StaticArrays = "1.9.7" @@ -69,6 +70,7 @@ Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6" Optim = "429524aa-4258-5aef-a3af-852621145aeb" QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc" SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" +SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283" SparseConnectivityTracer = "9f842d2f-2579-4b1d-911e-f412cf18a3f5" StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" @@ -78,4 +80,4 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" [targets] -test = ["Aqua", "AllocCheck", "BenchmarkTools", "SafeTestsets", "ChainRulesCore", "Mooncake", "Optim", "Test", "StableRNGs", "FiniteDifferences", "QuadGK", "ForwardDiff", "StaticArrays", "Symbolics", "Unitful", "Zygote", "SparseConnectivityTracer"] +test = ["Aqua", "AllocCheck", "BenchmarkTools", "SafeTestsets", "SciMLTesting", "ChainRulesCore", "Mooncake", "Optim", "Test", "StableRNGs", "FiniteDifferences", "QuadGK", "ForwardDiff", "StaticArrays", "Symbolics", "Unitful", "Zygote", "SparseConnectivityTracer"] diff --git a/test/mooncake_tests.jl b/test/Extensions/mooncake_tests.jl similarity index 100% rename from test/mooncake_tests.jl rename to test/Extensions/mooncake_tests.jl diff --git a/test/sparseconnectivitytracer_tests.jl b/test/Extensions/sparseconnectivitytracer_tests.jl similarity index 100% rename from test/sparseconnectivitytracer_tests.jl rename to test/Extensions/sparseconnectivitytracer_tests.jl diff --git a/test/zygote_tests.jl b/test/Extensions/zygote_tests.jl similarity index 100% rename from test/zygote_tests.jl rename to test/Extensions/zygote_tests.jl diff --git a/test/derivative_tests.jl b/test/Methods/derivative_tests.jl similarity index 100% rename from test/derivative_tests.jl rename to test/Methods/derivative_tests.jl diff --git a/test/integral_inverse_tests.jl b/test/Methods/integral_inverse_tests.jl similarity index 100% rename from test/integral_inverse_tests.jl rename to test/Methods/integral_inverse_tests.jl diff --git a/test/integral_tests.jl b/test/Methods/integral_tests.jl similarity index 100% rename from test/integral_tests.jl rename to test/Methods/integral_tests.jl diff --git a/test/online_tests.jl b/test/Methods/online_tests.jl similarity index 100% rename from test/online_tests.jl rename to test/Methods/online_tests.jl diff --git a/test/show.jl b/test/Misc/show.jl similarity index 100% rename from test/show.jl rename to test/Misc/show.jl diff --git a/test/qa/Project.toml b/test/qa/Project.toml new file mode 100644 index 00000000..16d4e70f --- /dev/null +++ b/test/qa/Project.toml @@ -0,0 +1,19 @@ +[deps] +AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a" +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +DataInterpolations = "82cc6244-b520-54b8-b5a6-8a565e85f1d0" +SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" +SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283" +StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +DataInterpolations = {path = "../.."} + +[compat] +AllocCheck = "0.2" +Aqua = "0.8" +SafeTestsets = "0.0.1, 0.1" +SciMLTesting = "1" +StaticArrays = "1.9.7" +Test = "1" diff --git a/test/alloc_tests.jl b/test/qa/alloc_tests.jl similarity index 100% rename from test/alloc_tests.jl rename to test/qa/alloc_tests.jl diff --git a/test/qa.jl b/test/qa/qa.jl similarity index 100% rename from test/qa.jl rename to test/qa/qa.jl diff --git a/test/runtests.jl b/test/runtests.jl index c3a42819..a18a7cc4 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,42 +1,2 @@ -using SafeTestsets, Test - -const GROUP = get(ENV, "GROUP", "All") - -@time begin - if GROUP == "All" || GROUP == "Core" - @testset "Core" begin - @safetestset "Interface" include("interface.jl") - @safetestset "Parameter Tests" include("parameter_tests.jl") - @safetestset "Interpolation Tests" include("interpolation_tests.jl") - @safetestset "Extrapolation Tests" include("extrapolation_tests.jl") - end - end - - if GROUP == "All" || GROUP == "Methods" - @testset "Methods" begin - @safetestset "Derivative Tests" include("derivative_tests.jl") - @safetestset "Integral Tests" include("integral_tests.jl") - @safetestset "Integral Inverse Tests" include("integral_inverse_tests.jl") - @safetestset "Online Tests" include("online_tests.jl") - end - end - - if GROUP == "All" || GROUP == "Extensions" - @testset "Extensions" begin - @safetestset "SparseConnectivityTracer Tests" include("sparseconnectivitytracer_tests.jl") - @safetestset "Zygote support Tests" include("zygote_tests.jl") - @safetestset "Mooncake support Tests" include("mooncake_tests.jl") - end - end - - if GROUP == "All" || GROUP == "Misc" - @testset "Misc" begin - @safetestset "Show methods Tests" include("show.jl") - end - end - - if GROUP == "QA" - @safetestset "Quality Assurance" include("qa.jl") - @safetestset "Allocation Tests" include("alloc_tests.jl") - end -end +using SciMLTesting +run_tests()