Skip to content

Commit 34743a5

Browse files
authored
Put formal tests (Aqua, JET, JuliaFormatter) inside the main test set (#330)
* Put formal tests (Aqua, JET, JuliaFormatter) inside the main test set * Aqua non verbose
1 parent 0c29f25 commit 34743a5

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

test/runtests.jl

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,6 @@ function get_pkg_version(name::AbstractString)
2828
return error("Dependency not available")
2929
end
3030

31-
@testset "Code quality (JET.jl)" begin
32-
if VERSION >= v"1.9"
33-
@assert get_pkg_version("JET") >= v"0.8.4"
34-
JET.test_package(
35-
Graphs; target_defined_modules=true, ignore_missing_comparison=true
36-
)
37-
end
38-
end
39-
40-
@testset verbose = true "Code quality (Aqua.jl)" begin
41-
Aqua.test_all(Graphs; ambiguities=false)
42-
end
43-
44-
@testset verbose = true "Code formatting (JuliaFormatter.jl)" begin
45-
@test format(Graphs; verbose=false, overwrite=false)
46-
end
47-
48-
doctest(Graphs)
49-
5031
function testgraphs(g)
5132
return if is_directed(g)
5233
[g, DiGraph{UInt8}(g), DiGraph{Int16}(g)]
@@ -164,8 +145,29 @@ tests = [
164145
]
165146

166147
@testset verbose = true "Graphs" begin
167-
for t in tests
168-
tp = joinpath(testdir, "$(t).jl")
169-
include(tp)
148+
@testset "Code quality (JET.jl)" begin
149+
if VERSION >= v"1.9"
150+
@assert get_pkg_version("JET") >= v"0.8.4"
151+
JET.test_package(
152+
Graphs; target_defined_modules=true, ignore_missing_comparison=true
153+
)
154+
end
155+
end
156+
157+
@testset "Code quality (Aqua.jl)" begin
158+
Aqua.test_all(Graphs; ambiguities=false)
159+
end
160+
161+
@testset "Code formatting (JuliaFormatter.jl)" begin
162+
@test format(Graphs; verbose=false, overwrite=false)
163+
end
164+
165+
doctest(Graphs)
166+
167+
@testset verbose = true "Actual tests" begin
168+
for t in tests
169+
tp = joinpath(testdir, "$(t).jl")
170+
include(tp)
171+
end
170172
end
171173
end;

0 commit comments

Comments
 (0)