Skip to content

Commit af0627b

Browse files
committed
Run doctests in runtests.jl
1 parent 4afd7ab commit af0627b

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ makedocs(
99
modules = [DiffMatic],
1010
pages = ["Introduction" => "index.md", "API Reference" => "api.md"],
1111
checkdocs = :exports,
12+
doctest = false, # doctests are run separately
1213
)
1314

1415
deploydocs(repo = "https://github.com/asterycs/DiffMatic.jl")

test/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[deps]
22
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
34
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
45

56
[compat]
67
Aqua = "0.8"
8+
Documenter = "1.10"
79
Test = "1.10"

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# License, v. 2.0. If a copy of the MPL was not distributed with this
33
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
44

5+
using Documenter
56
using Test
67

78
include("TestUtils.jl")
@@ -21,3 +22,6 @@ end
2122
@testset "StdTest" begin
2223
include("StdTest.jl")
2324
end
25+
26+
DocMeta.setdocmeta!(DiffMatic, :DocTestSetup, :(using DiffMatic); recursive = true)
27+
doctest(DiffMatic)

0 commit comments

Comments
 (0)