Skip to content

Commit

Permalink
Add Aqua tests
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed May 22, 2024
1 parent 16f8d25 commit 1da2bb2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
10 changes: 9 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions src/compat_check.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
5 changes: 5 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Aqua: Aqua
using Dates
using EzXML
using ReferenceTests
Expand All @@ -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
Expand Down

0 comments on commit 1da2bb2

Please sign in to comment.