File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1+ @testitem " DocTest" begin
2+ using Documenter
3+ old_debug_level = get (ENV , " JULIA_DEBUG" , " " )
4+ DocMeta. setdocmeta! (
5+ ModelPredictiveControl,
6+ :DocTestSetup ,
7+ :(
8+ using ModelPredictiveControl, ControlSystemsBase;
9+ ENV [" JULIA_DEBUG" ] = " " ; # temporarily disable @debug logging for the doctests
10+ );
11+ recursive= true ,
12+ warn= false
13+ )
14+ doctest (ModelPredictiveControl, testset= " DocTest" )
15+ ENV [" JULIA_DEBUG" ] = old_debug_level
16+ end
Original file line number Diff line number Diff line change 1- # spell-checker: disable
2-
31using ModelPredictiveControl
4- using Documenter
5- using Test, TestItemRunner
2+ using Test, TestItems, TestItemRunner
63
74@run_package_tests (verbose= true )
85
@@ -11,19 +8,6 @@ include("1_test_sim_model.jl")
118include (" 2_test_state_estim.jl" )
129include (" 3_test_predictive_control.jl" )
1310include (" 4_test_plot_sim.jl" )
14-
15- old_debug_level = get (ENV , " JULIA_DEBUG" , " " )
16- DocMeta. setdocmeta! (
17- ModelPredictiveControl,
18- :DocTestSetup ,
19- :(
20- using ModelPredictiveControl, ControlSystemsBase;
21- ENV [" JULIA_DEBUG" ] = " " ; # temporarily disable @debug logging for the doctests
22- );
23- recursive= true ,
24- warn= false
25- )
26- doctest (ModelPredictiveControl, testset= " DocTest" )
27- ENV [" JULIA_DEBUG" ] = old_debug_level
11+ include (" 5_test_doctest.jl" )
2812
2913nothing
You can’t perform that action at this time.
0 commit comments