Skip to content

Commit

Permalink
Merge pull request #115 from TuringLang/dw/atom
Browse files Browse the repository at this point in the history
Do not test Atom/Juno
  • Loading branch information
cpfiffer authored Jan 11, 2023
2 parents 33487da + 3ca7b94 commit 7192263
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
3 changes: 1 addition & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ Transducers = "0.4.30"
julia = "1.6"

[extras]
Atom = "c52e3926-4ff0-5f6e-af25-54175e0327b1"
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Atom", "IJulia", "Statistics", "Test"]
test = ["IJulia", "Statistics", "Test"]
1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using AbstractMCMC
using Atom.Progress: JunoProgressLogger
using ConsoleProgressMonitor: ProgressLogger
using IJulia
using LogDensityProblems
Expand Down
16 changes: 0 additions & 16 deletions test/sample.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,6 @@
@test chain[1].b == 3.2
end

@testset "Juno" begin
empty!(LOGGERS)

Random.seed!(1234)
N = 10

logger = JunoProgressLogger()
Logging.with_logger(logger) do
sample(MyModel(), MySampler(), N; loggers=true)
end

@test length(LOGGERS) == 1
@test first(LOGGERS) === logger
@test Logging.current_logger() === CURRENT_LOGGER
end

@testset "IJulia" begin
# emulate running IJulia kernel
@eval IJulia begin
Expand Down

0 comments on commit 7192263

Please sign in to comment.