Skip to content

Commit

Permalink
Run tests with debug logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
Holbormon committed May 1, 2024
1 parent 6d7ce99 commit 5be075f
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using VisualRegressionTests
using AbstractTrees
using LinearAlgebra
using Logging
using GraphRecipes
using SparseArrays
using ImageMagick
Expand Down Expand Up @@ -79,20 +80,23 @@ end
@test s == [2, 3, 3, 4]
@test d == [3, 2, 4, 3]
@test all(w .≈ 1)
pl = graphplot(g)
@test first(pl.series_list)[:extra_kwargs][:num_edges_nodes] == (2, 7)

add_edge!(g, 6, 7)
@test g.ne == 3
pl = graphplot(g)
@test first(pl.series_list)[:extra_kwargs][:num_edges_nodes] == (3, 7)

# old behavior (see issue), can be recovered using `trim=true`
g = SimpleGraph(7)
add_edge!(g, 2, 3)
add_edge!(g, 3, 4)
pl = graphplot(g; trim = true)
@test first(pl.series_list)[:extra_kwargs][:num_edges_nodes] == (2, 4)
with_logger(ConsoleLogger(stderr, Logging.Debug)) do
pl = graphplot(g)
@test first(pl.series_list)[:extra_kwargs][:num_edges_nodes] == (2, 7)

add_edge!(g, 6, 7)
@test g.ne == 3
pl = graphplot(g)
@test first(pl.series_list)[:extra_kwargs][:num_edges_nodes] == (3, 7)

# old behavior (see issue), can be recovered using `trim=true`
g = SimpleGraph(7)
add_edge!(g, 2, 3)
add_edge!(g, 3, 4)
pl = graphplot(g; trim = true)
@test first(pl.series_list)[:extra_kwargs][:num_edges_nodes] == (2, 4)
end
end

@testset "180" begin
Expand Down

0 comments on commit 5be075f

Please sign in to comment.