Skip to content

Commit

Permalink
test: wrap in a global testset
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 8, 2024
1 parent 4590181 commit 7c46822
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions lib/BracketingNonlinearSolve/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using TestItemRunner, InteractiveUtils
using TestItemRunner, InteractiveUtils, Test

@info sprint(InteractiveUtils.versioninfo)

@run_package_tests
@tesetset "BracketingNonlinearSolve.jl" begin
@run_package_tests
end
12 changes: 7 additions & 5 deletions lib/SimpleNonlinearSolve/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using TestItemRunner, InteractiveUtils, Pkg
using TestItemRunner, InteractiveUtils, Pkg, Test

@info sprint(InteractiveUtils.versioninfo)

Expand All @@ -7,8 +7,10 @@ const GROUP = lowercase(get(ENV, "GROUP", "All"))
(GROUP == "all" || GROUP == "cuda") && Pkg.add(["CUDA"])
(GROUP == "all" || GROUP == "adjoint") && Pkg.add(["SciMLSensitivity"])

if GROUP == "all"
@run_package_tests
else
@run_package_tests filter = ti -> (Symbol(GROUP) in ti.tags)
@testset "SimpleNonlinearSolve.jl" begin
if GROUP == "all"
@run_package_tests
else
@run_package_tests filter = ti -> (Symbol(GROUP) in ti.tags)
end
end

0 comments on commit 7c46822

Please sign in to comment.