BazerData.jl

Data manipulation utilities for Julia
Log | Files | Refs | README | LICENSE

runtests.jl (1025B)


      1 # --------------------------------------------------------------------------------------------------
      2 using BazerData
      3 using Test
      4 
      5 using PalmerPenguins
      6 using DataFrames
      7 using Dates
      8 using Random
      9 import StatsBase: quantile, Weights, sample
     10 using StreamToString
     11 
     12 const testsuite = [
     13     "tabulate", 
     14     "xtile", "winsorize", 
     15     "panel_fill", "timeshift"
     16 ]
     17 
     18 ENV["DATADEPS_ALWAYS_ACCEPT"] = true # for data loading of PalmerPenguins
     19 # --------------------------------------------------------------------------------------------------
     20 
     21 
     22 # --------------------------------------------------------------------------------------------------
     23 printstyled("Running tests:\n", color=:blue, bold=true)
     24 
     25 @testset verbose=true "BazerData.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 # --------------------------------------------------------------------------------------------------
     33