From acdd5412a5419f5ecc6f6937fbdf6cb99e50722f Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Sat, 13 Jun 2026 07:36:59 -0400 Subject: [PATCH] Use SciMLTesting v1.1.0 (run_tests harness, curated all=) Convert test/runtests.jl from the hand-written GROUP if-ladder to a single SciMLTesting.run_tests call. Behavior-equivalent: the set of tests run under each GROUP value is identical to the previous dispatcher. * core = Core testset (qa.jl, basics, sensitivity, ensemble, threshold, examples) -- QA is folded into Core exactly as upstream main. * groups = Dict("Datafit" => datafit.jl). * all = ["Core", "Datafit"] -- the curated v1.1.0 membership reproducing the original All branch (Core then Datafit; no separate QA group ever existed here). Project.toml: add SciMLTesting (uuid 09d9d899-5365-40a9-917a-5f67fddea283, [compat] "1") to [extras] + test target. No Pkg to drop (upstream test deps never included Pkg). Co-Authored-By: Chris Rackauckas Co-Authored-By: Claude Opus 4.8 (1M context) --- Project.toml | 4 +++- test/runtests.jl | 21 +++++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Project.toml b/Project.toml index 1744564..d643861 100644 --- a/Project.toml +++ b/Project.toml @@ -35,6 +35,7 @@ Reexport = "1" SafeTestsets = "0.1" SciMLBase = "2.54, 3.1" SciMLExpectations = "2" +SciMLTesting = "1" Test = "1" Turing = "0.33, 0.34, 0.35, 0.36, 0.45" julia = "1.10" @@ -42,7 +43,8 @@ julia = "1.10" [extras] Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" +SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Aqua", "SafeTestsets", "Test"] +test = ["Aqua", "SafeTestsets", "SciMLTesting", "Test"] diff --git a/test/runtests.jl b/test/runtests.jl index 503c4f5..9c27ad9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,9 +1,8 @@ using SafeTestsets, Test +using SciMLTesting -const GROUP = get(ENV, "GROUP", "All") - -@time begin - if GROUP == "All" || GROUP == "Core" +run_tests(; + core = () -> begin @testset "Core" begin @time @safetestset "Quality Assurance" include("qa.jl") @time @safetestset "Basic Tests" include("basics.jl") @@ -12,9 +11,11 @@ const GROUP = get(ENV, "GROUP", "All") @time @safetestset "Threshold Tests" include("threshold.jl") @time @safetestset "Example Tests" include("examples.jl") end - end - - if GROUP == "All" || GROUP == "Datafit" - @time @safetestset "Datafit Tests" include("datafit.jl") - end -end + end, + groups = Dict( + "Datafit" => () -> begin + @time @safetestset "Datafit Tests" include("datafit.jl") + end, + ), + all = ["Core", "Datafit"], +)