Skip to content

Commit

Permalink
jet and aqua in basic test set
Browse files Browse the repository at this point in the history
  • Loading branch information
thorek1 committed Nov 19, 2023
1 parent 1d7d6c0 commit 2ff42e8
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2ff42e8

Please sign in to comment.