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

Don't create a testset for each potential test file. #2338

Merged
merged 1 commit into from
Sep 26, 2020
Merged
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
11 changes: 7 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ t = time()
include("Containers/Containers.jl")
println("Containers.jl took $(round(time() - t; digits = 1)) seconds.")

@testset "$(file)" for file in filter(f -> endswith(f, ".jl"), readdir(@__DIR__))
for file in filter(f -> endswith(f, ".jl"), readdir(@__DIR__))
if file in [
"runtests.jl",
"utilities.jl",
Expand All @@ -26,9 +26,12 @@ println("Containers.jl took $(round(time() - t; digits = 1)) seconds.")
]
continue
end
t = time()
include(file)
println("$(file) took $(round(time() - t; digits = 1)) seconds.")

@testset "$(file)" begin
t = time()
include(file)
println("$(file) took $(round(time() - t; digits = 1)) seconds.")
end
end

# TODO: The hygiene test should run in a separate Julia instance where JuMP
Expand Down