From 2ff42e8ab338f4d7e1173bccb8402ad06e2e8a59 Mon Sep 17 00:00:00 2001 From: thorek1 Date: Sun, 19 Nov 2023 18:19:42 +0000 Subject: [PATCH] jet and aqua in basic test set --- test/runtests.jl | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 4198d34f..ed33632e 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -13,31 +13,12 @@ println("Threads used: ", Threads.nthreads()) include("functionality_tests.jl") -@testset verbose = true "Code quality (Aqua.jl)" begin - # Aqua.test_all(MacroModelling) - @testset "Compare Project.toml and test/Project.toml" Aqua.test_project_extras(MacroModelling) - @testset "Stale dependencies" Aqua.test_stale_deps(MacroModelling)#; ignore = [:Aqua, :JET]) - @testset "Unbound type parameters" Aqua.test_unbound_args(MacroModelling) - @testset "Undefined exports" Aqua.test_undefined_exports(MacroModelling) - @testset "Piracy" Aqua.test_piracies(MacroModelling) - @testset "Method ambiguity" Aqua.test_ambiguities(MacroModelling, recursive = false) - @testset "Compat" Aqua.test_deps_compat(MacroModelling)#; ignore = [:Aqua, :JET]) - # @testset "Persistent tasks" Aqua.test_persistent_tasks(MacroModelling) -end -GC.gc() - -@testset verbose = true "Static checking (JET.jl)" begin - if VERSION >= v"1.9" - JET.test_package(MacroModelling; target_defined_modules = true, toplevel_logger = nothing) - end -end - - # @testset verbose = true "Code formatting (JuliaFormatter.jl)" begin # @test format(MacroModelling; verbose=true, overwrite=true) # end + if test_env_var == "estimation" include("test_estimation.jl") end @@ -227,6 +208,25 @@ end if test_env_var == "basic" plots = false + @testset verbose = true "Code quality (Aqua.jl)" begin + # Aqua.test_all(MacroModelling) + @testset "Compare Project.toml and test/Project.toml" Aqua.test_project_extras(MacroModelling) + @testset "Stale dependencies" Aqua.test_stale_deps(MacroModelling)#; ignore = [:Aqua, :JET]) + @testset "Unbound type parameters" Aqua.test_unbound_args(MacroModelling) + @testset "Undefined exports" Aqua.test_undefined_exports(MacroModelling) + @testset "Piracy" Aqua.test_piracies(MacroModelling) + @testset "Method ambiguity" Aqua.test_ambiguities(MacroModelling, recursive = false) + @testset "Compat" Aqua.test_deps_compat(MacroModelling)#; ignore = [:Aqua, :JET]) + # @testset "Persistent tasks" Aqua.test_persistent_tasks(MacroModelling) + end + GC.gc() + + @testset verbose = true "Static checking (JET.jl)" begin + if VERSION >= v"1.9" + JET.test_package(MacroModelling; target_defined_modules = true, toplevel_logger = nothing) + end + end + @testset verbose = true "Test various models: NSSS and 1st order solution" begin include("test_models.jl") end