Skip to content

Commit 4023365

Browse files
committed
Fixing issues in tests and adding some output to avoid travis-ci problems
1 parent f1000b3 commit 4023365

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

test/basekernels/periodic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
@test k(v1, v2) == k(v2, v1)
88
@test PeriodicKernel(3)(v1, v2) == PeriodicKernel(r = ones(3))(v1, v2)
99
@test repr(k) == "Periodic Kernel, length(r) = $(length(r)))"
10-
test_ADs(r->PeriodicKernel(r =r), r, ADs = [:ForwardDiff, :ReverseDiff])
10+
test_ADs(r->PeriodicKernel(r =exp.(r)), log.(r), ADs = [:ForwardDiff, :ReverseDiff])
1111
@test_broken "Undefined adjoint for Sinus metric"
1212
end

test/runtests.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using PDMats
66
using Random
77
using SpecialFunctions
88
using Test
9-
using Flux: params
9+
using Flux: params, Chain, Dense
1010
import Zygote, ForwardDiff, ReverseDiff, FiniteDifferences
1111

1212
using KernelFunctions: metric, kappa, ColVecs, RowVecs
@@ -40,16 +40,19 @@ using KernelFunctions: metric, kappa, ColVecs, RowVecs
4040
# disable tests by simply commenting them out, and makes it very clear which tests are not
4141
# currently being run.
4242
# 10. If utility files are required.
43+
@info "Packages Loaded"
4344

4445
@testset "KernelFunctions" begin
4546

4647
include("utils.jl")
4748
include("utils_AD.jl")
49+
4850
@testset "distances" begin
4951
include(joinpath("distances", "dotproduct.jl"))
5052
include(joinpath("distances", "delta.jl"))
5153
include(joinpath("distances", "sinus.jl"))
5254
end
55+
@info "Ran tests on Distances"
5356

5457
@testset "transform" begin
5558
include(joinpath("transform", "transform.jl"))
@@ -60,6 +63,7 @@ using KernelFunctions: metric, kappa, ColVecs, RowVecs
6063
include(joinpath("transform", "selecttransform.jl"))
6164
include(joinpath("transform", "chaintransform.jl"))
6265
end
66+
@info "Ran tests on Transform"
6367

6468
@testset "basekernels" begin
6569
include(joinpath("basekernels", "constant.jl"))
@@ -78,6 +82,7 @@ using KernelFunctions: metric, kappa, ColVecs, RowVecs
7882
include(joinpath("basekernels", "sm.jl"))
7983
include(joinpath("basekernels", "wiener.jl"))
8084
end
85+
@info "Ran tests on BaseKernel"
8186

8287
@testset "kernels" begin
8388
include(joinpath("kernels", "kernelproduct.jl"))
@@ -90,12 +95,14 @@ using KernelFunctions: metric, kappa, ColVecs, RowVecs
9095
# helpful these are.
9196
include(joinpath("kernels", "custom.jl"))
9297
end
98+
@info "Ran tests on Kernel"
9399

94100
@testset "matrix" begin
95101
include(joinpath("matrix", "kernelmatrix.jl"))
96102
include(joinpath("matrix", "kernelkroneckermat.jl"))
97103
include(joinpath("matrix", "kernelpdmat.jl"))
98104
end
105+
@info "Ran tests on matrix"
99106

100107
@testset "approximations" begin
101108
include(joinpath("approximations", "nystrom.jl"))

0 commit comments

Comments
 (0)