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
-
3
1
using ModelPredictiveControl
4
- using Documenter
5
- using Test, TestItemRunner
2
+ using Test, TestItems, TestItemRunner
6
3
7
4
@run_package_tests (verbose= true )
8
5
@@ -11,19 +8,6 @@ include("1_test_sim_model.jl")
11
8
include (" 2_test_state_estim.jl" )
12
9
include (" 3_test_predictive_control.jl" )
13
10
include (" 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" )
28
12
29
13
nothing
You can’t perform that action at this time.
0 commit comments