diff --git a/Project.toml b/Project.toml index 4c2a3cd2..15d8c77f 100644 --- a/Project.toml +++ b/Project.toml @@ -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"] diff --git a/test/test_plot.jl b/test/test_plot.jl new file mode 100644 index 00000000..d09fc243 --- /dev/null +++ b/test/test_plot.jl @@ -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