Skip to content

Commit 1a99035

Browse files
Update
1 parent 5639465 commit 1a99035

File tree

3 files changed

+57
-53
lines changed

3 files changed

+57
-53
lines changed

Project.toml

+7
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,23 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
2222
ForwardDiffStaticArraysExt = "StaticArrays"
2323

2424
[compat]
25+
Aqua = "0.8"
2526
Calculus = "0.5"
2627
CommonSubexpressions = "0.3"
2728
DiffResults = "1.1"
2829
DiffRules = "1.4"
2930
DiffTests = "0.1"
31+
InteractiveUtils = "1"
32+
LinearAlgebra = "1"
3033
LogExpFunctions = "0.3"
3134
NaNMath = "1"
3235
Preferences = "1"
36+
Printf = "1"
37+
Random = "1"
38+
SparseArrays = "1"
3339
SpecialFunctions = "1, 2"
3440
StaticArrays = "1.5"
41+
Test = "1"
3542
julia = "1.6"
3643

3744
[extras]

test/AquaTest.jl

+5-8
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ using Test
22
using ForwardDiff
33
using Aqua
44

5-
@testset "Aqua tests (performance)" begin
5+
@testset "Aqua tests - unbound_args" begin
66
# This tests that we don't accidentally run into
77
# https://github.com/JuliaLang/julia/issues/29393
88
ua = Aqua.detect_unbound_args_recursively(ForwardDiff)
99
@test length(ua) == 6
10+
end
1011

12+
@testset "Aqua tests - ambiguities" begin
1113
# See: https://github.com/SciML/OrdinaryDiffEq.jl/issues/1750
1214
# Test that we're not introducing method ambiguities across deps
1315
ambs = Aqua.detect_ambiguities(ForwardDiff; recursive = true)
@@ -18,13 +20,8 @@ using Aqua
1820
@test length(ambs) == 0
1921
end
2022

21-
@testset "Aqua tests (additional)" begin
22-
Aqua.test_undefined_exports(ForwardDiff)
23-
Aqua.test_stale_deps(ForwardDiff)
24-
Aqua.test_deps_compat(ForwardDiff)
25-
Aqua.test_project_extras(ForwardDiff)
26-
Aqua.test_project_toml_formatting(ForwardDiff)
27-
Aqua.test_piracy(ForwardDiff)
23+
@testset "Aqua tests - remaining" begin
24+
Aqua.test_all(ForwardDiff; ambiguities = false, unbound_args = false)
2825
end
2926

3027
nothing

test/runtests.jl

+45-45
Original file line numberDiff line numberDiff line change
@@ -6,51 +6,51 @@ Random.seed!(SEED)
66

77
@testset "ForwardDiff.jl" begin
88
t0 = time()
9-
@testset "Partials" begin
10-
println("##### Testing Partials...")
11-
t = @elapsed include("PartialsTest.jl")
12-
println("##### done (took $t seconds).")
13-
end
14-
@testset "Dual" begin
15-
println("##### Testing Dual...")
16-
t = @elapsed include("DualTest.jl")
17-
println("##### done (took $t seconds).")
18-
end
19-
@testset "Derivatives" begin
20-
println("##### Testing derivative functionality...")
21-
t = @elapsed include("DerivativeTest.jl")
22-
println("##### done (took $t seconds).")
23-
end
24-
@testset "Gradients" begin
25-
println("##### Testing gradient functionality...")
26-
t = @elapsed include("GradientTest.jl")
27-
println("##### done (took $t seconds).")
28-
end
29-
@testset "Jacobians" begin
30-
println("##### Testing jacobian functionality...")
31-
t = @elapsed include("JacobianTest.jl")
32-
println("##### done (took $t seconds).")
33-
end
34-
@testset "Hessians" begin
35-
println("##### Testing hessian functionality...")
36-
t = @elapsed include("HessianTest.jl")
37-
println("##### done (took $t seconds).")
38-
end
39-
@testset "Perturbation Confusion" begin
40-
println("##### Testing perturbation confusion functionality...")
41-
t = @elapsed include("ConfusionTest.jl")
42-
println("##### done (took $t seconds).")
43-
end
44-
@testset "Miscellaneous" begin
45-
println("##### Testing miscellaneous functionality...")
46-
t = @elapsed include("MiscTest.jl")
47-
println("##### done (took $t seconds).")
48-
end
49-
@testset "Allocations" begin
50-
println("##### Testing allocations...")
51-
t = @elapsed include("AllocationsTest.jl")
52-
println("##### done (took $t seconds).")
53-
end
9+
# @testset "Partials" begin
10+
# println("##### Testing Partials...")
11+
# t = @elapsed include("PartialsTest.jl")
12+
# println("##### done (took $t seconds).")
13+
# end
14+
# @testset "Dual" begin
15+
# println("##### Testing Dual...")
16+
# t = @elapsed include("DualTest.jl")
17+
# println("##### done (took $t seconds).")
18+
# end
19+
# @testset "Derivatives" begin
20+
# println("##### Testing derivative functionality...")
21+
# t = @elapsed include("DerivativeTest.jl")
22+
# println("##### done (took $t seconds).")
23+
# end
24+
# @testset "Gradients" begin
25+
# println("##### Testing gradient functionality...")
26+
# t = @elapsed include("GradientTest.jl")
27+
# println("##### done (took $t seconds).")
28+
# end
29+
# @testset "Jacobians" begin
30+
# println("##### Testing jacobian functionality...")
31+
# t = @elapsed include("JacobianTest.jl")
32+
# println("##### done (took $t seconds).")
33+
# end
34+
# @testset "Hessians" begin
35+
# println("##### Testing hessian functionality...")
36+
# t = @elapsed include("HessianTest.jl")
37+
# println("##### done (took $t seconds).")
38+
# end
39+
# @testset "Perturbation Confusion" begin
40+
# println("##### Testing perturbation confusion functionality...")
41+
# t = @elapsed include("ConfusionTest.jl")
42+
# println("##### done (took $t seconds).")
43+
# end
44+
# @testset "Miscellaneous" begin
45+
# println("##### Testing miscellaneous functionality...")
46+
# t = @elapsed include("MiscTest.jl")
47+
# println("##### done (took $t seconds).")
48+
# end
49+
# @testset "Allocations" begin
50+
# println("##### Testing allocations...")
51+
# t = @elapsed include("AllocationsTest.jl")
52+
# println("##### done (took $t seconds).")
53+
# end
5454
@testset "Aqua" begin
5555
println("##### Testing aqua...")
5656
t = @elapsed include("AquaTest.jl")

0 commit comments

Comments
 (0)