runtests.jl (954B)
1 # -------------------------------------------------------------------------------------------------- 2 using BazerUtils 3 using Test 4 5 import Logging: global_logger 6 import LoggingExtras: ConsoleLogger, TeeLogger 7 import JSON 8 import CodecZlib 9 import HTTP 10 import Dates 11 import DataFrames 12 13 const testsuite = [ 14 "customlogger", 15 "jsonlines", 16 "html_tables" 17 ] 18 19 # -------------------------------------------------------------------------------------------------- 20 21 22 # -------------------------------------------------------------------------------------------------- 23 printstyled("Running tests:\n", color=:blue, bold=true) 24 25 @testset verbose=true "BazerUtils.jl" begin 26 for test in testsuite 27 println("\033[1m\033[32m → RUNNING\033[0m: $(test)") 28 include("UnitTests/$test.jl") 29 println("\033[1m\033[32m PASSED\033[0m") 30 end 31 end 32 # --------------------------------------------------------------------------------------------------