From 51228b514cfd5567a0c51dbe12894c0b680d2c8f Mon Sep 17 00:00:00 2001 From: icweaver Date: Fri, 24 Oct 2025 19:05:16 -0700 Subject: [PATCH 1/5] fix subdirectory paths found --- src/ParallelTestRunner.jl | 2 +- test/runtests.jl | 7 +++++++ test/subdir/subdir_test.jl | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test/subdir/subdir_test.jl diff --git a/src/ParallelTestRunner.jl b/src/ParallelTestRunner.jl index ae91180..1463eee 100644 --- a/src/ParallelTestRunner.jl +++ b/src/ParallelTestRunner.jl @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl index 6c83431..8813df7 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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 diff --git a/test/subdir/subdir_test.jl b/test/subdir/subdir_test.jl new file mode 100644 index 0000000..8a617b3 --- /dev/null +++ b/test/subdir/subdir_test.jl @@ -0,0 +1 @@ +@test true From bf93430207611063f57b515613cb18fda15efc57 Mon Sep 17 00:00:00 2001 From: icweaver Date: Fri, 24 Oct 2025 19:21:44 -0700 Subject: [PATCH 2/5] windows --- test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 8813df7..efcdb97 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -28,7 +28,7 @@ end 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") + @test last(testsuite["subdir/subdir_test"].args) == joinpath(d, joinpath("subdir", "subdir_test.jl")) end @testset "custom tests" begin From 7361f01b483bc11806b480287ddaa76aa0ebb689 Mon Sep 17 00:00:00 2001 From: icweaver Date: Fri, 24 Oct 2025 19:24:28 -0700 Subject: [PATCH 3/5] what am i doing --- test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index efcdb97..5766986 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -28,7 +28,7 @@ end d = pwd() testsuite = find_tests(d) @test last(testsuite["basic"].args) == joinpath(d, "basic.jl") - @test last(testsuite["subdir/subdir_test"].args) == joinpath(d, joinpath("subdir", "subdir_test.jl")) + @test last(testsuite["subdir/subdir_test"].args) == joinpath(d, "subdir", "subdir_test.jl") end @testset "custom tests" begin From 1c1a5847ce449cbc9275c1856c1011805883bb36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= <765740+giordano@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:22:18 +0100 Subject: [PATCH 4/5] Update test/runtests.jl --- test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 5766986..4bf7e53 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -25,7 +25,7 @@ cd(@__DIR__) end @testset "subdir use" begin - d = pwd() + d = @__DIR__ 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") From 308aa6245ae93dcb98d4ff55305192c2b44fb14b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= <765740+giordano@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:22:36 +0100 Subject: [PATCH 5/5] Bump version from 2.0.0 to 2.0.1 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 007646b..ab983b7 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ParallelTestRunner" uuid = "d3525ed8-44d0-4b2c-a655-542cee43accc" authors = ["Valentin Churavy "] -version = "2.0.0" +version = "2.0.1" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"