1- using DistributionFits
2- using Test
3- using Random: Random
4- using LoggingExtras
5-
6-
71tmpf = () -> begin
82 push! (LOAD_PATH , expanduser (" ~/julia/devtools/" )) # access local pack
93 push! (LOAD_PATH , joinpath (pwd (), " test/" )) # access local pack
@@ -13,60 +7,20 @@ using Test, SafeTestsets
137const GROUP = get (ENV , " GROUP" , " All" ) # defined in in CI.yml
148@show GROUP
159
16- # @time begin
17- # if GROUP == "All" || GROUP == "Basic"
18- # #@safetestset "Tests" include("test/test_plant_face_fluct.jl")
19- # @time @safetestset "plant_face_fluct" include("test_plant_face_fluct.jl")
20- # end
21- # if GROUP == "All" || GROUP == "JET"
22- # #@safetestset "Tests" include("test/test_JET.jl")
23- # @time @safetestset "test_JET" include("test_JET.jl")
24- # #@safetestset "Tests" include("test/test_aqua.jl")
25- # @time @safetestset "test_Aqua" include("test_aqua.jl")
26- # end
27- # end
28-
29-
30- # using Aqua; Aqua.test_all(DistributionFits) # ambiguities from other packages
31- # using JET; JET.report_package(DistributionFits) #
32- # invalid possible error due to quantile may accept/return an Array (we pass a scalar)
33- # only report problems in this module:
34- # using JET; JET.report_package(DistributionFits; target_modules=(@__MODULE__,)) #
35-
36- @testset " optimize error" begin
37- @test_throws Exception DistributionFits. optimize (x -> x * x, - 1 , 1 )
38- end
39- using Optim: Optim, optimize
40-
41- DistributionFitsOptimExt = isdefined (Base, :get_extension ) ?
42- Base. get_extension (DistributionFits, :DistributionFitsOptimExt ) :
43- DistributionFits. DistributionFitsOptimExt
44-
45- @testset " optimize set in __init__ after using Optim" begin
46- # set in __init__
47- @test DistributionFits. df_optimizer isa DistributionFitsOptimExt. OptimOptimizer
10+ @time begin
11+ if GROUP == " All" || GROUP == " Basic"
12+ # @safetestset "Tests" include("test/test_optim.jl")
13+ @time @safetestset " test_optim" include (" test_optim.jl" )
14+ # @safetestset "Tests" include("test/fitstats.jl")
15+ @time @safetestset " fitstats" include (" fitstats.jl" )
16+ # @safetestset "Tests" include("test/univariate/test_univariate.jl")
17+ @time @safetestset " test_univariate" include (" univariate/test_univariate.jl" )
18+ end
19+ if GROUP == " All" || GROUP == " JET"
20+ # @safetestset "Tests" include("test/test_JET.jl")
21+ @time @safetestset " test_JET" include (" test_JET.jl" )
22+ # @safetestset "Tests" include("test/test_aqua.jl")
23+ @time @safetestset " test_Aqua" include (" test_aqua.jl" )
24+ end
4825end
4926
50- # include("test/testutils.jl")
51- include (" testutils.jl" )
52-
53- # include("test/fitstats.jl")
54- include (" fitstats.jl" )
55-
56- # include("test/univariate/test_univariate.jl")
57- include (" univariate/test_univariate.jl" )
58-
59- # test coverage of set_optimize (already called in init)
60-
61- # print method ambiguities
62- println (" Potentially stale exports: " )
63- display (Test. detect_ambiguities (DistributionFits))
64- println ()
65-
66- using JET: JET
67- @testset " JET" begin
68- @static if VERSION ≥ v " 1.9.2"
69- JET. test_package (DistributionFits; target_modules= (@__MODULE__ ,)) #
70- end
71- end ;
72-
0 commit comments