diff --git a/Project.toml b/Project.toml index 174384f..8858aef 100644 --- a/Project.toml +++ b/Project.toml @@ -24,8 +24,9 @@ Random = "1" RecipesBase = "1.3.4" RecursiveArrayTools = "4" Reexport = "1.2.2" -SafeTestsets = "0.1" +SafeTestsets = "0.1, 1" SciMLBase = "3.1.0" +SciMLTesting = "1" StaticArrays = "1" StaticArraysCore = "1.4.3" Test = "1" @@ -35,11 +36,11 @@ julia = "1.10" ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" -Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" +SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["ExplicitImports", "LinearAlgebra", "OrdinaryDiffEq", "Pkg", "Random", "SafeTestsets", "StaticArrays", "Test"] +test = ["ExplicitImports", "LinearAlgebra", "OrdinaryDiffEq", "Random", "SafeTestsets", "SciMLTesting", "StaticArrays", "Test"] diff --git a/test/qa/Project.toml b/test/qa/Project.toml index 9e69f60..b637fe4 100644 --- a/test/qa/Project.toml +++ b/test/qa/Project.toml @@ -2,6 +2,8 @@ Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" DiffEqPhysics = "055956cb-9e8b-5191-98cc-73ae4a59e68a" JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" +SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [sources] @@ -10,5 +12,7 @@ DiffEqPhysics = {path = "../.."} [compat] Aqua = "0.8" JET = "0.9,0.10,0.11" +SafeTestsets = "0.1, 1" +SciMLTesting = "1" Test = "1" julia = "1.10" diff --git a/test/runtests.jl b/test/runtests.jl index 321b2b2..a18a7cc 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,21 +1,2 @@ -using SafeTestsets, Test, Pkg - -const GROUP = get(ENV, "GROUP", "All") - -if GROUP == "All" || GROUP == "Core" - @safetestset "Hamiltonian Test" begin - include("hamiltonian_test.jl") - end - #@safetestset "N-Body Test" begin include("nbody_test.jl") end - - @safetestset "Explicit Imports" begin - include("explicit_imports.jl") - end -end - -if GROUP == "QA" - Pkg.activate("qa") - Pkg.develop(PackageSpec(path = dirname(@__DIR__))) - Pkg.instantiate() - include("qa/qa.jl") -end +using SciMLTesting +run_tests() diff --git a/test/nbody_test.jl b/test/shared/nbody_test.jl similarity index 100% rename from test/nbody_test.jl rename to test/shared/nbody_test.jl