Skip to content

Commit

Permalink
doctest for rst files disabled in pytest.ini but test command added t…
Browse files Browse the repository at this point in the history
…o sphinx makefile
  • Loading branch information
Stefan Maetschke committed Apr 30, 2017
1 parent 21bfecd commit 7e1a96b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[pytest]
norecursedirs = build dist .tox .eggs html data nuts_flow.egg-info
addopts = --doctest-modules --ignore=setup.py --doctest-glob='*.rsxx'
addopts = --doctest-modules --ignore=setup.py --doctest-glob='*.rst_DISABLED'
doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS
6 changes: 6 additions & 0 deletions sphinx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ help:
@echo " coverage to run coverage check of the documentation (if enabled)"
@echo " dummy to check syntax errors of document sources"

.PHONY: test
test:
cd ..; \
pytest --doctest-glob='*.rst'; \
cd sphinx

.PHONY: clean
clean:
rm -rf $(BUILDDIR)/*
Expand Down

0 comments on commit 7e1a96b

Please sign in to comment.