collect and execute doctests from modules and test files.
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.
Checkout customize, other plugins or get in contact.