From 1da2bb2cbafc14cc89b226b0d68f098e7e68a354 Mon Sep 17 00:00:00 2001 From: Curtis Vogt <curtis.vogt@gmail.com> Date: Wed, 22 May 2024 10:16:07 -0500 Subject: [PATCH] Add Aqua tests --- Project.toml | 10 +++++++++- src/compat_check.jl | 4 ++-- test/runtests.jl | 5 +++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 5ca98a6..91a1c35 100644 --- a/Project.toml +++ b/Project.toml @@ -10,13 +10,21 @@ Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] +Aqua = "0.8" +Dates = "1" EzXML = "1" +Pkg = "1" +Printf = "1" +ReferenceTests = "0.10" +Test = "1" +UUIDs = "1" julia = "1" [extras] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" ReferenceTests = "324d217c-45ce-50fc-942e-d289b448e8cf" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" [targets] -test = ["ReferenceTests", "Test", "UUIDs"] +test = ["Aqua", "ReferenceTests", "Test", "UUIDs"] diff --git a/src/compat_check.jl b/src/compat_check.jl index 93a7f10..9091c9b 100644 --- a/src/compat_check.jl +++ b/src/compat_check.jl @@ -14,13 +14,13 @@ compatible(current::VersionNumber, desired::Pkg.Types.VersionSpec) = current in end """ - check_project(project::Nothing, args...) + check_project(project::Nothing, pkg, loc) check_project(project, pkg, loc) Error if `project` has a version of TestReports which is incompatible with this version of TestReports. """ -check_project(project::Nothing, args...) = nothing +check_project(project::Nothing, pkg, loc) = nothing function check_project(project, pkg, loc) if hascompat(project) && haskey(getcompat(project), "TestReports") project_testreports_compat = getcompat(project)["TestReports"] diff --git a/test/runtests.jl b/test/runtests.jl index b0bc1cd..294c70d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,3 +1,4 @@ +using Aqua: Aqua using Dates using EzXML using ReferenceTests @@ -11,6 +12,10 @@ include("utils.jl") # Include other test scripts @testset "TestReports" begin + @testset "Aqua" begin + Aqua.test_all(TestReports) + end + @testset "testsets" begin include("testsets.jl") end @testset "properties" begin include("properties.jl") end @testset "report generation" begin include("reportgeneration.jl") end