Skip to content

Commit 8dddcea

Browse files
Copilotyebai
andauthored
Add Aqua tests for automated quality assurance (#130)
* Initial plan * Add Aqua tests for automated quality assurance Co-authored-by: yebai <[email protected]> * Fix missing newline at end of Aqua.jl * Remove AQUA environment variable and always run Aqua tests in All/Tests groups Co-authored-by: yebai <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: yebai <[email protected]>
1 parent 548ce9d commit 8dddcea

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

test/Aqua.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module AquaTests
2+
3+
using Aqua: Aqua
4+
using AbstractPPL
5+
6+
# For now, we skip ambiguities since they come from interactions
7+
# with third-party packages rather than issues in AbstractPPL itself
8+
Aqua.test_all(AbstractPPL; ambiguities=false)
9+
10+
end

test/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[deps]
22
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
3+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
34
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
45
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
56
InvertedIndices = "41ab1584-1d38-5bbf-9106-f11c6c58b48f"
@@ -10,6 +11,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1011

1112
[compat]
1213
Accessors = "0.1"
14+
Aqua = "0.8"
1315
Distributions = "0.25"
1416
Documenter = "0.26.3, 0.27, 1"
1517
InvertedIndices = "1"

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const GROUP = get(ENV, "GROUP", "All")
66

77
@testset "AbstractPPL.jl" begin
88
if GROUP == "All" || GROUP == "Tests"
9+
include("Aqua.jl")
910
include("varname.jl")
1011
include("abstractprobprog.jl")
1112
include("hasvalue.jl")

0 commit comments

Comments
 (0)