Skip to content

Add Aqua tests #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading