From e4687832386c9e83ca06b54af0a17381a2a1a23d Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 15:30:06 -0600 Subject: [PATCH] Allow docstrings to calculate coverage (hopefully) Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- Project.toml | 3 ++- test/runtests.jl | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 6369a05..c4ebb30 100644 --- a/Project.toml +++ b/Project.toml @@ -8,6 +8,7 @@ julia = "1" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" [targets] -test = ["Test"] +test = ["Test", "Documenter"] diff --git a/test/runtests.jl b/test/runtests.jl index d85ae04..10718b9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,6 @@ using Cowsay using Test +using Documenter -@testset "cowsay.jl" begin - # Write your tests here. -end +DocMeta.setdocmeta!(Cowsay, :DocTestSetup, :(using Cowsay); recursive=true) +doctest(Cowsay)