Skip to content

Commit d93a327

Browse files
switch to safetestset
1 parent 9f9e88c commit d93a327

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ NLsolve = "2774e3e8-f4cf-5e23-947b-6d7e65073b56"
4949
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
5050
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
5151
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
52+
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
5253
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
5354
StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a"
5455
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
@@ -57,7 +58,7 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
5758
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
5859

5960
[targets]
60-
test = ["Aqua", "ForwardDiff", "LabelledArrays", "NLsolve", "OrdinaryDiffEq", "Pkg", "Test", "Unitful", "Random", "StaticArrays", "StructArrays", "Zygote"]
61+
test = ["SafeTestsets", "Aqua", "ForwardDiff", "LabelledArrays", "NLsolve", "OrdinaryDiffEq", "Pkg", "Test", "Unitful", "Random", "StaticArrays", "StructArrays", "Zygote"]
6162

6263
[weakdeps]
6364
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"

test/runtests.jl

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ using Pkg
22
using RecursiveArrayTools
33
using Test
44
using Aqua
5+
using SafeTestsets
6+
57
Aqua.test_all(RecursiveArrayTools, ambiguities = false)
68
@test_broken isempty(Test.detect_ambiguities(RecursiveArrayTools))
79
const GROUP = get(ENV, "GROUP", "All")
@@ -21,27 +23,27 @@ end
2123

2224
@time begin
2325
if GROUP == "Core" || GROUP == "All"
24-
@time @testset "Utils Tests" begin include("utils_test.jl") end
25-
@time @testset "Partitions Tests" begin include("partitions_test.jl") end
26-
@time @testset "VecOfArr Indexing Tests" begin include("basic_indexing.jl") end
27-
@time @testset "SymbolicIndexingInterface API test" begin include("symbolic_indexing_interface_test.jl") end
28-
@time @testset "VecOfArr Interface Tests" begin include("interface_tests.jl") end
29-
@time @testset "Table traits" begin include("tabletraits.jl") end
30-
@time @testset "StaticArrays Tests" begin include("copy_static_array_test.jl") end
31-
@time @testset "Linear Algebra Tests" begin include("linalg.jl") end
32-
@time @testset "Upstream Tests" begin include("upstream.jl") end
33-
@time @testset "Adjoint Tests" begin include("adjoints.jl") end
26+
@time @safetestset "Utils Tests" begin include("utils_test.jl") end
27+
@time @safetestset "Partitions Tests" begin include("partitions_test.jl") end
28+
@time @safetestset "VecOfArr Indexing Tests" begin include("basic_indexing.jl") end
29+
@time @safetestset "SymbolicIndexingInterface API test" begin include("symbolic_indexing_interface_test.jl") end
30+
@time @safetestset "VecOfArr Interface Tests" begin include("interface_tests.jl") end
31+
@time @safetestset "Table traits" begin include("tabletraits.jl") end
32+
@time @safetestset "StaticArrays Tests" begin include("copy_static_array_test.jl") end
33+
@time @safetestset "Linear Algebra Tests" begin include("linalg.jl") end
34+
@time @safetestset "Upstream Tests" begin include("upstream.jl") end
35+
@time @safetestset "Adjoint Tests" begin include("adjoints.jl") end
3436
end
3537

3638
if !is_APPVEYOR && GROUP == "Downstream"
3739
activate_downstream_env()
38-
@time @testset "DiffEqArray Indexing Tests" begin include("downstream/symbol_indexing.jl") end
39-
@time @testset "Event Tests with ArrayPartition" begin include("downstream/downstream_events.jl") end
40-
@time @testset "TrackerExt" begin include("downstream/TrackerExt.jl") end
40+
@time @safetestset "DiffEqArray Indexing Tests" begin include("downstream/symbol_indexing.jl") end
41+
@time @safetestset "Event Tests with ArrayPartition" begin include("downstream/downstream_events.jl") end
42+
@time @safetestset "TrackerExt" begin include("downstream/TrackerExt.jl") end
4143
end
4244

4345
if !is_APPVEYOR && GROUP == "GPU"
4446
activate_gpu_env()
45-
@time @testset "VectorOfArray GPU" begin include("gpu/vectorofarray_gpu.jl") end
47+
@time @safetestset "VectorOfArray GPU" begin include("gpu/vectorofarray_gpu.jl") end
4648
end
4749
end

0 commit comments

Comments
 (0)