diff --git a/src/testcontext.jl b/src/testcontext.jl index cb9b72f2..5658d8cf 100644 --- a/src/testcontext.jl +++ b/src/testcontext.jl @@ -46,7 +46,7 @@ Base.size(x::FilteredVector) = size(x.vec) Base.getindex(x::FilteredVector, i) = x.vec[i] struct FileNode - path::String + path::SubString{String} testset::DefaultTestSet junit::Union{JUnitTestSuite,Nothing} testitems::FilteredVector{TestItem} # sorted by line number within file @@ -62,7 +62,7 @@ Base.push!(f::FileNode, ti::TestItem) = push!(f.testitems, ti) walk(f, fn::FileNode) = foreach(f, fn.testitems) struct DirNode - path::String + path::SubString{String} testset::DefaultTestSet junit::Union{JUnitTestSuites,Nothing} children::Vector{Union{FileNode, DirNode}} # sorted lexically by path