Skip to content

Commit 8abe585

Browse files
committed
Include documenter tests in unit tests
1 parent de1b00c commit 8abe585

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ TranscodingStreams = "0.9.5"
1717
julia = "1.3"
1818

1919
[extras]
20+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
2021
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2122

2223
[targets]
23-
test = ["Test"]
24+
test = ["Documenter", "Test"]

docs/make.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
using Pkg
22
using Documenter, Indexes
33

4+
DocMeta.setdocmeta!(Indexes, :DocTestSetup, :(using Indexes); recursive=true)
5+
46
makedocs(
57
format = Documenter.HTML(
68
edit_link = "develop"
79
),
810
modules = [Indexes],
11+
checkdocs = :all,
12+
linkcheck = true,
913
sitename = "Indexes.jl",
14+
authors = replace(join(Pkg.TOML.parsefile("Project.toml")["authors"], ", "), r" <.*?>" => "" ) * ", The BioJulia Organisation, and other contributors.",
1015
pages = [
1116
"Home" => "index.md",
1217
"API Reference" => "man/api.md"
1318
],
14-
authors = replace(join(Pkg.TOML.parsefile("Project.toml")["authors"], ", "), r" <.*?>" => "" ) * ", The BioJulia Organisation, and other contributors."
1519
)
1620
deploydocs(
1721
repo = "github.com/BioJulia/Indexes.jl.git",

test/runtests.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
using Test
2+
using Documenter
3+
24
using Indexes
35

46
@testset "Indexes" begin
57
# TODO
68
# @test GenomicFeatures.Indexes.Tabix === GenomicFeatures.Indexes.Tabix
7-
end
9+
10+
11+
# Include doctests.
12+
DocMeta.setdocmeta!(Indexes, :DocTestSetup, :(using Indexes); recursive=true)
13+
doctest(Indexes; manual = false)
14+
15+
end

0 commit comments

Comments
 (0)