Skip to content

Commit cd773a4

Browse files
committed
add SciMLLogging to test target
1 parent 7127e5d commit cd773a4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Random = "1.10"
106106
ReTestItems = "1.24"
107107
Reexport = "1.2.2"
108108
ReverseDiff = "1.15"
109+
SciMLLogging = "1.3"
109110
SIAMFANLEquations = "1.0.1"
110111
SciMLBase = "2.116"
111112
SimpleNonlinearSolve = "2.1"
@@ -145,6 +146,7 @@ PolyesterForwardDiff = "98d1487c-24ca-40b6-b7ab-df2af84e126b"
145146
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
146147
ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"
147148
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
149+
SciMLLogging = "a6db7da4-7206-11f0-1eab-35f2a5dbe1d1"
148150
SIAMFANLEquations = "084e46ad-d928-497d-ad5e-07fa361a48c4"
149151
SparseConnectivityTracer = "9f842d2f-2579-4b1d-911e-f412cf18a3f5"
150152
SparseMatrixColorings = "0a514795-09f3-496d-8182-132a7b665d35"
@@ -157,4 +159,4 @@ Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
157159
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
158160

159161
[targets]
160-
test = ["Aqua", "BandedMatrices", "BenchmarkTools", "ExplicitImports", "FastLevenbergMarquardt", "FixedPointAcceleration", "Hwloc", "InteractiveUtils", "LeastSquaresOptim", "LineSearches", "MINPACK", "NLSolvers", "NLsolve", "NaNMath", "NonlinearProblemLibrary", "OrdinaryDiffEqTsit5", "PETSc", "Pkg", "PolyesterForwardDiff", "Random", "ReTestItems", "SIAMFANLEquations", "SparseConnectivityTracer", "SparseMatrixColorings", "SpeedMapping", "StableRNGs", "StaticArrays", "Sundials", "Test", "Zygote", "ReverseDiff", "Tracker"]
162+
test = ["Aqua", "BandedMatrices", "BenchmarkTools", "ExplicitImports", "FastLevenbergMarquardt", "FixedPointAcceleration", "Hwloc", "InteractiveUtils", "LeastSquaresOptim", "LineSearches", "MINPACK", "NLSolvers", "NLsolve", "NaNMath", "NonlinearProblemLibrary", "OrdinaryDiffEqTsit5", "PETSc", "Pkg", "PolyesterForwardDiff", "Random", "ReTestItems", "SIAMFANLEquations", "SparseConnectivityTracer", "SparseMatrixColorings", "SpeedMapping", "StableRNGs", "StaticArrays", "Sundials", "Test", "Zygote", "ReverseDiff", "Tracker", "SciMLLogging"]

test/verbosity_tests.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using SciMLLogging: SciMLLogging
77
using Logging
88
using Test
9-
using Logging
109

1110
@testset "NonlinearVerbosity preset constructors" begin
1211
v_none = NonlinearVerbosity(SciMLLogging.None())
@@ -89,8 +88,8 @@
8988
int_prob,
9089
ITP(), verbose = NonlinearVerbosity(non_enclosing_interval = SciMLLogging.InfoLevel()))
9190

92-
@test_throws Test.FallbackTestSetException @test_logs (:error,
93-
"The interval is not an enclosing interval, opposite signs at the boundaries are required.") solve(
91+
@test_logs (:error,
92+
"The interval is not an enclosing interval, opposite signs at the boundaries are required.") @test_throws ErrorException solve(
9493
int_prob,
9594
ITP(), verbose = NonlinearVerbosity(non_enclosing_interval = SciMLLogging.ErrorLevel()))
9695

0 commit comments

Comments
 (0)