Skip to content

Commit

Permalink
Split up the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 12, 2023
1 parent be2298f commit 54e75da
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 28 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
strategy:
matrix:
group:
- Core
- Shooting
- MIRK
- Others
version:
- '1'
steps:
Expand All @@ -32,6 +34,8 @@ jobs:
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: ${{ matrix.group }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
Expand Down
62 changes: 35 additions & 27 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,41 +1,49 @@
using Test, SafeTestsets

const GROUP = uppercase(get(ENV, "GROUP", "ALL"))

@testset "Boundary Value Problem Tests" begin
@time @testset "Shooting Method Tests" begin
@time @safetestset "Shooting Tests" begin
include("shooting/shooting_tests.jl")
end
@time @safetestset "Ray Tracing BVP" begin
include("shooting/ray_tracing.jl")
end
@time @safetestset "Orbital" begin
include("shooting/orbital.jl")
if GROUP == "ALL" || GROUP == "SHOOTING"
@time @testset "Shooting Method Tests" begin
@time @safetestset "Shooting Tests" begin
include("shooting/shooting_tests.jl")
end
@time @safetestset "Ray Tracing BVP" begin
include("shooting/ray_tracing.jl")
end
@time @safetestset "Orbital" begin
include("shooting/orbital.jl")
end
end
end

@time @testset "Collocation Method (MIRK) Tests" begin
@time @safetestset "Ensemble" begin
include("mirk/ensemble.jl")
end
@time @safetestset "MIRK Convergence Tests" begin
include("mirk/mirk_convergence_tests.jl")
end
@time @safetestset "Vector of Vector" begin
include("mirk/vectorofvector_initials.jl")
if GROUP == "ALL" || GROUP == "MIRK"
@time @testset "Collocation Method (MIRK) Tests" begin
@time @safetestset "Ensemble" begin
include("mirk/ensemble.jl")
end
@time @safetestset "MIRK Convergence Tests" begin
include("mirk/mirk_convergence_tests.jl")
end
@time @safetestset "Vector of Vector" begin
include("mirk/vectorofvector_initials.jl")
end
end
end

@time @testset "Miscelleneous" begin
@time @safetestset "Non Vector Inputs" begin
include("misc/non_vector_inputs.jl")
end
if GROUP == "ALL" || GROUP == "OTHERS"
@time @testset "Miscelleneous" begin
@time @safetestset "Non Vector Inputs" begin
include("misc/non_vector_inputs.jl")
end

@time @safetestset "Type Stability" begin
include("misc/type_stability.jl")
end
@time @safetestset "Type Stability" begin
include("misc/type_stability.jl")
end

@time @safetestset "ODE Interface Tests" begin
include("misc/odeinterface_ex7.jl")
@time @safetestset "ODE Interface Tests" begin
include("misc/odeinterface_ex7.jl")
end
end
end
end

0 comments on commit 54e75da

Please sign in to comment.