Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ParallelTestRunner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ function find_tests(dir::String)
end

for file in files
path = joinpath(rootpath, file * ".jl")
path = joinpath(rootpath, basename(file * ".jl"))
tests[file] = :(include($path))
end
end
Expand Down
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ cd(@__DIR__)
@test isfile(ParallelTestRunner.get_history_file(ParallelTestRunner))
end

@testset "subdir use" begin
d = pwd()
testsuite = find_tests(d)
@test last(testsuite["basic"].args) == joinpath(d, "basic.jl")
@test last(testsuite["subdir/subdir_test"].args) == joinpath(d, "subdir", "subdir_test.jl")
end

@testset "custom tests" begin
testsuite = Dict(
"custom" => quote
Expand Down
1 change: 1 addition & 0 deletions test/subdir/subdir_test.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@test true