From 4082d61434589a1fa7c7051e4f1787bfe1bf3542 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Sun, 14 Jun 2026 09:31:56 -0400 Subject: [PATCH] Use SciMLTesting v1.2 folder-based run_tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the hand-written GROUP dispatch in test/runtests.jl with the SciMLTesting v1.2 folder-discovery harness (`using SciMLTesting; run_tests()`). - Core = top-level test/*.jl (core_tests.jl, alloc_tests.jl) in the main test env — same files the old dispatcher ran for Core/All. - QA = test/qa/. Move qa.jl from the top level into test/qa/ so that folder-discovery's Core glob (all top-level *.jl) does not erroneously run it. - Add SciMLTesting to root [extras]/[targets].test/[compat] and add SafeTestsets + SciMLTesting to the QA sub-env Project.toml (the harness wraps the QA file in a @safetestset, so SafeTestsets must be resolvable in that env). Drop Pkg from the test deps (the v1.2 harness owns all Pkg operations; no test/*.jl uses Pkg). - test/test_groups.toml unchanged. Co-Authored-By: Chris Rackauckas Co-Authored-By: Claude Opus 4.8 (1M context) --- Project.toml | 6 +++--- test/qa/Project.toml | 4 ++++ test/{ => qa}/qa.jl | 0 test/runtests.jl | 21 ++------------------- 4 files changed, 9 insertions(+), 22 deletions(-) rename test/{ => qa}/qa.jl (100%) diff --git a/Project.toml b/Project.toml index 46e9cd7..28d2d69 100644 --- a/Project.toml +++ b/Project.toml @@ -8,8 +8,8 @@ AllocCheck = "0.2" Aqua = "0.8" JET = "0.9, 0.10, 0.11" LinearAlgebra = "1.10" -Pkg = "1.10" SafeTestsets = "0.1" +SciMLTesting = "1" Statistics = "1.10" Test = "1.10" julia = "1.10" @@ -19,10 +19,10 @@ AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a" Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" -Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" +SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["AllocCheck", "Aqua", "JET", "LinearAlgebra", "Pkg", "SafeTestsets", "Statistics", "Test"] +test = ["AllocCheck", "Aqua", "JET", "LinearAlgebra", "SafeTestsets", "SciMLTesting", "Statistics", "Test"] diff --git a/test/qa/Project.toml b/test/qa/Project.toml index 7b8da5f..5137764 100644 --- a/test/qa/Project.toml +++ b/test/qa/Project.toml @@ -2,6 +2,8 @@ Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" +SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" +SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" SurrogatesBase = "89f642e6-4179-4274-8202-c11f4bd9a72c" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" @@ -13,6 +15,8 @@ SurrogatesBase = {path = "../.."} Aqua = "0.8" JET = "0.9, 0.10, 0.11" LinearAlgebra = "1.10" +SafeTestsets = "0.1" +SciMLTesting = "1" Statistics = "1.10" Test = "1.10" julia = "1.10" 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 5e77d88..a18a7cc 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,19 +1,2 @@ -using Pkg -using SafeTestsets -using Test - -const GROUP = get(ENV, "GROUP", "All") - -@testset "SurrogatesBase" begin - if GROUP == "QA" - Pkg.activate(joinpath(@__DIR__, "qa")) - Pkg.develop(path = joinpath(@__DIR__, "..")) - Pkg.instantiate() - @safetestset "Quality Assurance" include("qa.jl") - end - - if GROUP == "All" || GROUP == "Core" - @safetestset "Core" include("core_tests.jl") - @safetestset "Allocation Tests" include("alloc_tests.jl") - end -end +using SciMLTesting +run_tests()