Skip to content

Commit a5aa17e

Browse files
authored
doctest: add optional doctest filters (#46)
1 parent e94d5e3 commit a5aa17e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "OscarDevTools"
22
uuid = "4f01c588-2833-446a-9dbd-6331d80acb41"
33
authors = ["Benjamin Lorenz <[email protected]>"]
4-
version = "0.2.22"
4+
version = "0.2.23"
55

66
[deps]
77
GitHub = "bc5e4493-9b4d-5f90-b8aa-2b2bcaad7a26"

src/doctest_helper.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ end
2323
function doctest_cmd(pkg::Symbol)
2424
mod = getproperty(@__MODULE__, pkg)
2525
setup = QuoteNode(isdefined(mod, :doctestsetup) ? mod.doctestsetup() : :(using $(pkg)))
26+
filters = isdefined(mod, :doctestfilters) ? mod.doctestfilters() : []
2627
return quote
27-
DocMeta.setdocmeta!($pkg, :DocTestSetup, $setup; recursive = true); doctest($pkg)
28+
DocMeta.setdocmeta!($pkg, :DocTestSetup, $setup; recursive = true); doctest($pkg; doctestfilters=$filters)
2829
end
2930
end
3031

0 commit comments

Comments
 (0)