Skip to content

Commit b40ddaa

Browse files
committed
changing Makefile: updating test-code and test-coverage, removed test-doc
1 parent 3a1d1fa commit b40ddaa

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Makefile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
PYTHON ?= python
66
NOSETESTS=`which nosetests`
77

8-
.PHONY: zipdoc sdist egg upload_to_pypi trailing-spaces clean-pyc clean-so clean-build clean-ctags clean in inplace test-code test-doc test-coverage test html specs check-before-commit check
8+
.PHONY: zipdoc sdist egg upload_to_pypi trailing-spaces clean-pyc clean-so clean-build clean-ctags clean in inplace test-code test-coverage test html specs check-before-commit check
99

1010
zipdoc: html
1111
zip documentation.zip doc/_build/html
@@ -56,16 +56,11 @@ inplace:
5656
$(PYTHON) setup.py build_ext -i
5757

5858
test-code: in
59-
python -W once:FSL:UserWarning:nipype $(NOSETESTS) --with-doctest --with-doctest-ignore-unicode --logging-level=DEBUG --verbosity=3 nipype
60-
61-
test-doc:
62-
$(NOSETESTS) -s --with-doctest --with-doctest-ignore-unicode --doctest-tests --doctest-extension=rst \
63-
--doctest-fixtures=_fixture doc/
59+
py.test --doctest-module nipype
6460

6561
test-coverage: clean-tests in
66-
$(NOSETESTS) -s --with-doctest --with-doctest-ignore-unicode --with-coverage --cover-package=nipype \
67-
--config=.coveragerc
68-
62+
py.test --doctest-modules --cov-config .coveragerc --cov=nipype nipype
63+
6964
test: tests # just another name
7065
tests: clean test-code
7166

0 commit comments

Comments
 (0)