Mercurial > repos > public > sbplib_julia
comparison test/runtests.jl @ 713:be648c6d6686 feature/selectable_tests
Wrap each file in a testset
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 20 Feb 2021 21:09:45 +0100 |
parents | df88aee35bb9 |
children | 1c5600a711ae |
comparison
equal
deleted
inserted
replaced
712:de2df1214394 | 713:be648c6d6686 |
---|---|
30 end | 30 end |
31 | 31 |
32 if endswith(name, "_test.jl") && occursin(glob, filepath) | 32 if endswith(name, "_test.jl") && occursin(glob, filepath) |
33 printstyled("Running "; bold=true, color=:green) | 33 printstyled("Running "; bold=true, color=:green) |
34 println(filepath) | 34 println(filepath) |
35 include(filepath) | 35 @testset "$name" begin |
36 include(filepath) | |
37 end | |
36 end | 38 end |
37 end | 39 end |
38 end | 40 end |
39 | 41 |
40 testsetname = isempty(ARGS) ? "Sbplib.jl" : ARGS[1] | 42 testsetname = isempty(ARGS) ? "Sbplib.jl" : ARGS[1] |