Here are guidelines about sphinxcontrib-testbuild usage.
sphinxcontrib.testbuild uses these conventions as default configuration:
Run tests with Python’s standard unittest:
# cd path/to/your/project/, i.e. where there is a Makefile and a docs/
python -m unittest sphinxcontrib.testbuild.tests
Using nosetests:
bin/nosetests sphinxcontrib.testbuild.tests
Extend and customize sphinxcontrib.testbuild.SphinxBuildTestCase class in some test suite of yours. Then run your test suite as usual.