Skip to content

Commit

Permalink
improve progressmeter interface in inference tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Portal committed Jun 13, 2024
1 parent d44e36d commit 47aba44
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
4 changes: 0 additions & 4 deletions test/inference/repgradelbo_distributionsad.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

const PROGRESS = length(ARGS) > 0 && ARGS[1] == "--progress" ? true : false

using Test

@testset "inference RepGradELBO DistributionsAD" begin
@testset "$(modelname) $(objname) $(realtype) $(adbackname)" for
realtype [Float64, Float32],
Expand Down
4 changes: 0 additions & 4 deletions test/inference/repgradelbo_locationscale.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

const PROGRESS = length(ARGS) > 0 && ARGS[1] == "--progress" ? true : false

using Test

@testset "inference RepGradELBO VILocationScale" begin
@testset "$(modelname) $(objname) $(realtype) $(adbackname)" for
realtype in [Float64, Float32],
Expand Down
4 changes: 0 additions & 4 deletions test/inference/repgradelbo_locationscale_bijectors.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

const PROGRESS = length(ARGS) > 0 && ARGS[1] == "--progress" ? true : false

using Test

@testset "inference RepGradELBO VILocationScale Bijectors" begin
@testset "$(modelname) $(objname) $(realtype) $(adbackname)" for
realtype in [Float64, Float32],
Expand Down
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ if GROUP == "All" || GROUP == "Interface"
include("interface/location_scale.jl")
end


const PROGRESS = haskey(ENV, "PROGRESS")

if GROUP == "All" || GROUP == "Inference"
include("inference/repgradelbo_distributionsad.jl")
include("inference/repgradelbo_locationscale.jl")
Expand Down

0 comments on commit 47aba44

Please sign in to comment.