Technical previewShare feedback

Search

Search documentation

Configuration

Updated Oct 31, 2026

Irondocs registers itself with pytest through the pytest11 entry point, so installing the package is enough to load the plugin. What it collects is up to one ini option.

irondocs_files

Glob patterns of the markdown files to collect, matched against each file's path relative to the rootdir. * and ? stay within one folder, ** spans any number of folders (none included), and a leading ./ or an absolute path also works. A pattern without a / matches the file's basename anywhere. The default is empty: nothing is collected until you opt in.

[tool.pytest.ini_options]
testpaths = ["tests", "docs", "README.md"]
irondocs_files = ["README.md", "docs/*.md"]

pytest only offers irondocs the files it walks, so the folders that hold your docs must be in testpaths or on the command line. A .md file named on the command line is always collected.

Imports

Doctests import modules as your test modules do. When the package under test is not installed, point pytest at it:

[tool.pytest.ini_options]
pythonpath = ["src"]

Disabling the plugin

Pass -p no:irondocs to run pytest without it.

Created with ❤ and Livemark