Sa’im al-Dahr finds the missing nose of the Sphinx. Actually a Nose plugin that reads in Sphinx doctests, and run them as Nose test cases.
Sa’im al-Dahr
View Slide
The GreatSphinx of Giza
Sphinx + Nose = ?
Why?• One-stop testing• Code in docs should be tested• Some tests shouldn’t be in docs
pip install sphinx-‐nose
$ nosetests -‐-‐with-‐sphinx ............... -‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐ Ran 15 tests in 0.022s OK
import nose from sphinxnose import SphinxDoctest def runtests(): nose.run( argv=[ __file__, '-‐-‐with-‐sphinx', '-‐-‐sphinx-‐doc-‐dir=testdocs' ], plugins=[SphinxDoctest()], )
http://github.com/uranusjr/saim-‐al-‐dahr
WHAT IF I AM INTERESTEDIN SOMETHING ELSE?