Skip to content

Commit 510096c

Browse files
committed
Fix and test default custom_tests value.
1 parent 9581afa commit 510096c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ParallelTestRunner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ Workers are automatically recycled when they exceed memory limits to prevent out
272272
issues during long test runs. The memory limit is set based on system architecture.
273273
"""
274274
function runtests(ARGS; testfilter = Returns(true), RecordType = TestRecord,
275-
custom_tests::Dict{String}=Dict{String}(), init_code = :())
275+
custom_tests::Dict{String, Expr}=Dict{String, Expr}(), init_code = :())
276276
do_help, _ = extract_flag!(ARGS, "--help")
277277
if do_help
278278
println(

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ init_code = quote
77
should_be_defined() = true
88
end
99

10+
runtests(ARGS; init_code)
11+
1012
custom_tests = Dict(
1113
"custom" => quote
1214
@test should_be_defined()
1315
end
1416
)
15-
1617
runtests(ARGS; init_code, custom_tests)

0 commit comments

Comments
 (0)