Skip to content

Commit d7702c7

Browse files
committed
Add Aqua and JET
1 parent 963e4d1 commit d7702c7

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

test/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[deps]
2+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
23
DynamicalSystems = "61744808-ddfa-5f27-97ff-6e42cc95d634"
34
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
45
HerbCore = "2b23ba43-8213-43cb-b5ea-38c12b45bd45"
6+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
57
MetaGraphsNext = "fa8bd995-216d-47f1-8a91-f3b68fbeb377"
68
SoleLogics = "b002da8f-3cb3-4d91-bbe3-2953433912b5"
79
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

test/runtests.jl

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
using Aqua
12
using GraphDynamicalSystems
3+
using JET
24
using Test
35

46

@@ -9,14 +11,23 @@ Don't add your tests to runtests.jl. Instead, create files named
911
1012
The file will be automatically included inside a `@testset` with title "Title For My Test".
1113
=#
12-
for (root, dirs, files) in walkdir(@__DIR__)
13-
for file in files
14-
if isnothing(match(r"^test-.*\.jl$", file))
15-
continue
16-
end
17-
title = titlecase(replace(splitext(file[6:end])[1], "-" => " "))
18-
@testset "$title" begin
19-
include(file)
14+
@testset "GraphDynamicalSystems.jl" begin
15+
@testset "Code quality (Aqua.jl)" begin
16+
Aqua.test_all(GraphDynamicalSystems)
17+
end
18+
@testset "Code linting (JET.jl)" begin
19+
JET.test_package(GraphDynamicalSystems; target_defined_modules = true)
20+
end
21+
22+
for (root, dirs, files) in walkdir(@__DIR__)
23+
for file in files
24+
if isnothing(match(r"^test-.*\.jl$", file))
25+
continue
26+
end
27+
title = titlecase(replace(splitext(file[6:end])[1], "-" => " "))
28+
@testset "$title" begin
29+
include(file)
30+
end
2031
end
2132
end
2233
end

0 commit comments

Comments
 (0)