From 65b96f492da775702c05dd2fd460055f0706457b Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Mon, 15 May 2023 17:12:43 +0200 Subject: [PATCH] [julia] Add Test.jl macros to list of tooling to automatically load on demand. --- .julia/config/startup.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.julia/config/startup.jl b/.julia/config/startup.jl index d889279..a2bdf88 100644 --- a/.julia/config/startup.jl +++ b/.julia/config/startup.jl @@ -30,12 +30,18 @@ if Base.isinteractive() && # - Debugger.jl when encountering @enter or @run # - Profile.jl when encountering @profile # - ProfileView.jl when encountering @profview + # - Test.jl when encountering @test, @testset, @test_xxx, ... local tooling_dict = Dict{Symbol,Vector{Symbol}}( :BenchmarkTools => Symbol.(["@btime", "@benchmark"]), :Cthulhu => Symbol.(["@descend", "@descend_code_typed", "@descend_code_warntype"]), :Debugger => Symbol.(["@enter", "@run"]), :Profile => Symbol.(["@profile"]), :ProfileView => Symbol.(["@profview"]), + :Test => Symbol.([ + "@test", "@testset", "@test_broken", "@test_deprecated", + "@test_logs", "@test_nowarn", "@test_skip", + "@test_throws", "@test_warn", + ]), ) pushfirst!(REPL.repl_ast_transforms, function(ast::Union{Expr,Nothing}) function contains_macro(ast, m)