Skip to content

Commit

Permalink
NF: Add rules to test the docstrings (all or individual)
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Feb 20, 2010
1 parent e196cfe commit 982a1f0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Expand Up @@ -355,14 +355,24 @@ testexamples: te-svdclf te-smlr te-searchlight te-sensanas te-pylab_2d \
te-searchlight_minimal te-smlr te-start_easy te-topo_plot \
te-gpr te-gpr_model_selection0

testdocstrings: dt-mvpa

dt-%: build
@PYTHONPATH=.:$(PYTHONPATH) \
MVPA_MATPLOTLIB_BACKEND=agg \
MVPA_EXTERNALS_RAISE_EXCEPTION=off \
MVPA_DATADB_ROOT=datadb \
$(NOSETESTS) --with-doctest \
$(shell git grep -l __docformat__ | grep '^mvpa' | grep "$*")

tm-%: build
@PYTHONPATH=.:$(CURDIR)/doc/examples:$(PYTHONPATH) \
MVPA_MATPLOTLIB_BACKEND=agg \
MVPA_DATADB_ROOT=datadb \
$(NOSETESTS) --with-doctest --doctest-extension .rst \
--doctest-tests doc/source/$*.rst

testmanual: build
testmanual: build testdocstrings
@echo "I: Testing code samples found in documentation"
@PYTHONPATH=.:$(CURDIR)/doc/examples:$(PYTHONPATH) \
MVPA_MATPLOTLIB_BACKEND=agg \
Expand Down

0 comments on commit 982a1f0

Please sign in to comment.