Skip to content
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

Print what is being testing during tests and timing #308

Merged
merged 1 commit into from
Nov 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 25 additions & 23 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,45 +15,47 @@ using Test

Random.seed!(1) # Set seed that all testsets should reset to.

function include_test(path)
print("Testing $path:\t") # print so TravisCI doesn't timeout due to no output
@time include(path) # show basic timing, (this will print a newline at end)
end

println("Testing ChainRules.jl")
@testset "ChainRules" begin
@testset "rulesets" begin
@testset "Base" begin
include(joinpath("rulesets", "Base", "base.jl"))
include(joinpath("rulesets", "Base", "fastmath_able.jl"))
include(joinpath("rulesets", "Base", "evalpoly.jl"))
include(joinpath("rulesets", "Base", "array.jl"))
include(joinpath("rulesets", "Base", "arraymath.jl"))
include(joinpath("rulesets", "Base", "indexing.jl"))
include(joinpath("rulesets", "Base", "mapreduce.jl"))
include_test("rulesets/Base/base.jl")
include_test("rulesets/Base/fastmath_able.jl")
include_test("rulesets/Base/evalpoly.jl")
include_test("rulesets/Base/array.jl")
include_test("rulesets/Base/arraymath.jl")
include_test("rulesets/Base/indexing.jl")
include_test("rulesets/Base/mapreduce.jl")
end

print(" ")
println()

@testset "Statistics" begin
include(joinpath("rulesets", "Statistics", "statistics.jl"))
include_test("rulesets/Statistics/statistics.jl")
end

print(" ")
println()

@testset "LinearAlgebra" begin
include(joinpath("rulesets", "LinearAlgebra", "dense.jl"))
include(joinpath("rulesets", "LinearAlgebra", "structured.jl"))
include(joinpath("rulesets", "LinearAlgebra", "factorization.jl"))
include(joinpath("rulesets", "LinearAlgebra", "blas.jl"))
include_test("rulesets/LinearAlgebra/dense.jl")
include_test("rulesets/LinearAlgebra/structured.jl")
include_test("rulesets/LinearAlgebra/factorization.jl")
include_test("rulesets/LinearAlgebra/blas.jl")
end

print(" ")
println()

@testset "Random" begin
include(joinpath("rulesets", "Random", "random.jl"))
include_test("rulesets/Random/random.jl")
end

print(" ")
println()

@testset "packages" begin
include(joinpath("rulesets", "packages", "NaNMath.jl"))
include(joinpath("rulesets", "packages", "SpecialFunctions.jl"))
include_test("rulesets/packages/NaNMath.jl")
include_test("rulesets/packages/SpecialFunctions.jl")
end
println()
end
end