TigerFetch.jl

Download TIGER/Line shapefiles from the US Census Bureau
Log | Files | Refs | README | LICENSE

runtests.jl (942B)


      1 # ABOUTME: Test runner for TigerFetch.jl package
      2 # ABOUTME: Executes all test suites (assets, downloads) with verbose output
      3 
      4 # --------------------------------------------------------------------------------------------------
      5 using TigerFetch
      6 using Test
      7 
      8 using Pkg.Artifacts
      9 using SHA
     10 
     11 
     12 
     13 const testsuite = [
     14     "assets",
     15     "downloads",
     16 ]
     17 
     18 # --------------------------------------------------------------------------------------------------
     19 
     20 
     21 # --------------------------------------------------------------------------------------------------
     22 printstyled("Running tests:\n", color=:blue, bold=true)
     23 
     24 @testset verbose=true "TigerFetch.jl" begin
     25     for test in testsuite
     26         println("\033[1m\033[32m  → RUNNING\033[0m: $(test)")
     27         include("UnitTests/$(test).jl")
     28         println("\033[1m\033[32m  PASSED\033[0m")
     29     end
     30 end
     31 # --------------------------------------------------------------------------------------------------
     32