Skip to content

Commit 9e58d51

Browse files
author
Andrey Oskin
committed
updated tests setup
1 parent 1c737d5 commit 9e58d51

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MiniLoggers"
22
uuid = "93f3dd0f-005d-4452-894a-a31841fa4078"
33
authors = ["Andrey Oskin"]
4-
version = "0.2.3"
4+
version = "0.2.4"
55

66
[deps]
77
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

test/main.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module MiniLoggersTest
2+
3+
using ReTest
4+
5+
for file in sort([file for file in readdir(@__DIR__) if
6+
occursin(r"^test.*\.jl$", file)])
7+
include(file)
8+
end
9+
10+
end # module

test/runtests.jl

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
module MiniLoggersTest
2-
3-
using ReTest
4-
5-
include("test01_tokenizer.jl")
6-
include("test02_loggerformat.jl")
7-
include("test03_misc.jl")
8-
9-
end # module
10-
11-
MiniLoggersTest.runtests()
1+
include(joinpath(@__DIR__, "main.jl"))
2+
3+
# You can run `Pkg.test("MiniLoggers", test_args = ["foo", "bar"])` or just
4+
# `Pkg.test(test_args = ["foo", "bar"])` to select only specific tests. If no `test_args`
5+
# is given or you are running usual `> ] test` command, then all tests are executed.
6+
if isempty(ARGS)
7+
MiniLoggersTest.runtests()
8+
else
9+
MiniLoggersTest.runtests(ARGS)
10+
end

0 commit comments

Comments
 (0)