fatalerrors = false
anyerrors = false

my_tests = ["dict.jl",
            "dataframes.jl",
            "grouping.jl",
            "chaining.jl",
            "linqmacro.jl"]

println("Running tests:")

for my_test in my_tests
    try
        include(my_test)
        println("\t\033[1m\033[32mPASSED\033[0m: $(my_test)")
    catch
        global anyerrors = true
        println("\t\033[1m\033[31mFAILED\033[0m: $(my_test)")
        if fatalerrors
            rethrow()
        end
    end
end

if anyerrors
    throw("Tests failed")
end
