pytest_doctest plugin

collect and execute doctests from modules and test files.

Usage

By default all files matching the test_*.txt pattern will be run with the doctest module. If you issue:

py.test --doctest-modules

all python files in your projects will be doctest-run as well.

command line options

--doctest-modules
search all python files for doctests

Start improving this plugin in 30 seconds

  1. Download pytest_doctest.py plugin source code
  2. put it somewhere as pytest_doctest.py into your import path
  3. a subsequent py.test run will use your local version

Checkout customize, other plugins or get in contact.