Skip to content

Commit 07dd797

Browse files
authored
Format testset names (#42)
* Format testset names This assigns testsets to just the group + filename instead of the full path * Bump v0.2.1 [no ci]
1 parent 88679b0 commit 07dd797

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ITensorPkgSkeleton"
22
uuid = "3d388ab1-018a-49f4-ae50-18094d5f71ea"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.2.0"
4+
version = "0.2.1"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"

templates/test/test/runtests.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ isexamplefile(fn) =
2424
# tests in groups based on folder structure
2525
for testgroup in filter(isdir, readdir(@__DIR__))
2626
if GROUP == "ALL" || GROUP == uppercase(testgroup)
27-
for file in filter(istestfile, readdir(joinpath(@__DIR__, testgroup); join=true))
27+
groupdir = joinpath(@__DIR__, testgroup)
28+
for file in filter(istestfile, readdir(groupdir))
29+
filename = joinpath(groupdir, file)
2830
@eval @safetestset $file begin
29-
include($file)
31+
include($filename)
3032
end
3133
end
3234
end

test/runtests.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ isexamplefile(fn) =
2424
# tests in groups based on folder structure
2525
for testgroup in filter(isdir, readdir(@__DIR__))
2626
if GROUP == "ALL" || GROUP == uppercase(testgroup)
27-
for file in filter(istestfile, readdir(joinpath(@__DIR__, testgroup); join=true))
27+
groupdir = joinpath(@__DIR__, testgroup)
28+
for file in filter(istestfile, readdir(groupdir))
29+
filename = joinpath(groupdir, file)
2830
@eval @safetestset $file begin
29-
include($file)
31+
include($filename)
3032
end
3133
end
3234
end

0 commit comments

Comments
 (0)