Skip to content

Commit

Permalink
Add in minimal plot testing
Browse files Browse the repository at this point in the history
  • Loading branch information
richardreeve committed Nov 22, 2023
1 parent 142ee86 commit 1124194
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,24 @@ Distributions = "0.24, 0.25"
Graphs = "1"
IterableTables = "1"
Missings = "1"
Plots = "1"
Printf = "1"
RCall = "0.13"
Random = "1"
RecipesBase = "1"
Requires = "1"
SimpleTraits = "0.9"
Statistics = "1"
Test = "1"
Tokenize = "0.5"
Unitful = "1"
julia = "1"

[extras]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
RCall = "6f49c342-dc21-5d91-9882-a32aef131414"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["DataFrames", "RCall", "Test"]
test = ["DataFrames", "Plots", "RCall", "Test"]
12 changes: 12 additions & 0 deletions test/test_plot.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module TestPlots
using Test

using Phylo
using Plots

@testset "Plots" begin
tree = open(parsenewick, Phylo.path("hummingbirds.tree"))
@test all(getproperty.([plot(tree), plot(tree, treetype = :fan)], :n) .== 1)
end

end

0 comments on commit 1124194

Please sign in to comment.