From f9f1bed6517719da871bd11be20884e073a7deb3 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Thu, 31 Mar 2022 18:57:53 -0500 Subject: [PATCH] Add doctests as unit tests Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- Project.toml | 3 ++- test/runtests.jl | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index d90abca..ded7152 100644 --- a/Project.toml +++ b/Project.toml @@ -11,7 +11,8 @@ julia = "1.6" EzXML = "1.1" [extras] +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test"] +test = ["Test", "Documenter"] diff --git a/test/runtests.jl b/test/runtests.jl index ccc6c8f..6307cb2 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,11 @@ +using Documenter using Kelpie using Test +DocMeta.setdocmeta!(Kelpie, :DocTestSetup, :(using Kelpie); recursive=true) + @testset "Kelpie.jl" begin - # Write your tests here. -end + @testset "Doctests" begin + doctest(Kelpie) + end #testset +end #testset