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"], +)